Page 1 of 1

Android Problems

Posted: Mon Apr 28, 2014 3:19 am
by trags3
I'm running on a Windows 7 Home Professional machine.everything was working fine including the android emulator on the App I m working on.
I got to the point where I could email the .apk file to my phone and install and run it there. Of course there were some issues so I made small incremental changes
to fix some of these problems when all of a sudden I started getting Parser errors when I tried to install on the phone.
I backed up a few steps and tried to run on the emulator and get the same parser problem.
I have no problem compiling for Windows and running on the computer. There are no commands or statements that are not supported on all platforms in the app.
The emulator stopped working at all and so I tried uninstalling the Android SDK's and reinstalling them.
This seemed to help but the emulator hangs up frequently.
I tried to com[pile a simple "hello World" type of stack with a couple entry fields and a multiplication.
It won't compile for the emulator or for a standalone android app.I get a "Could not compile application class error.
Compiles fine for window.
Do I need to reinstall LC? Help Please!

Tom

Re: Android Problems

Posted: Tue Apr 29, 2014 12:26 am
by trags3
OK I have worked out most of my problems.
The one remaining is the "Parser Error
When I put an apk file on my phone, I get a box that says

"Parse Error "
"There was a problem parsing the package"
"OK"
Any ideas as to what can cause this error?

tom

Re: Android Problems

Posted: Tue Apr 29, 2014 12:27 am
by trags3
BTW I loaded everything onto my Macbook Pro with no difference in outcome.

Tom

Re: Android Problems

Posted: Tue Apr 29, 2014 5:04 am
by Simon
Hi Tom,
Are you unable to connect your Android device via USB?
Much faster as it shows up in Development > Test Target

Simon

Re: Android Problems

Posted: Tue Apr 29, 2014 1:27 pm
by trags3
thanks simon
I wasn't able to connect directly to the phone with Windows, but I have figured it out with the Mac. :)
Now the phone does show up inthe test target field.
when I try to test it I get a very similar parser error message.
I guess I'll have to build up the app slowly until I figure out what the prob is.
modify/test/modify/test etc. :cry:
Tom

Re: Android Problems

Posted: Tue Apr 29, 2014 3:00 pm
by trags3
Simon, I don't get the error until the app is being installed to the test target.
In this case the phone. That is to say it goes from building classes, something else (too fast to see on screen) to Preparing Package to Installing app on target device whereupon the error msg "install_parse_failed_manifest_malformed" appears.
The phone is relatively new and the apk file is only ~2.3mb. There is plenty of room on the device.

Tom

Re: Android Problems

Posted: Wed Apr 30, 2014 2:20 pm
by MaxV

Re: Android Problems

Posted: Wed Apr 30, 2014 2:42 pm
by trags3
MaxV wrote:Did you read this? http://livecode.wikia.com/wiki/Signing_an_app
Max, Thanks. I have been able to connect the phone and am working through rebuilding the app.
I have either fixed the problems that prevented me from building the apk file or I haven't run into the problem yet.
I am nearly back to where I was last week.
I will probably need this info when I distribute to others.
Thanks

Re: Android Problems

Posted: Fri May 02, 2014 7:27 pm
by newtronsols
I think I had a similar problem when I used an icon .ico Needs to be a png.

My latest problem when testing/after installing is:

Unfortunately 'appname' has stopped working:

I am testing going back and fore via a button which uses launch url - but it stops eventually - so i suspect it is similar to a browser cache error, or perhaps my wifi connection?

I have tried:
set the compositorCacheLimit of this stack to 8388608 [8MB] in preopencard ..

Any ideas welcome. :idea: