Skip to main content
January 17, 2011
Question

Can't run my app in emulator, and can't install on device

  • January 17, 2011
  • 3 replies
  • 7034 views

Hi,

I just started with building android apps with flash and air. I have a strange problem, I made most simplest app just one frame in Flash, no AS whatever. When I publish apk (different apk for emulator and device), apk installs on emulator and runs, but there is only black screen with OS header. When I try to install apk on device (HTC Wildfire) it won't install just generic error app can not be installed.

I have installed AIR runtime on both emulator and device, and other air apps (from other ppl) work both on phone and device.I read that ARM7 processor is needed to run AIR apps on real devices , and my HTC has ARM6 but still runs AIR apps, how come?

Any ideas why my apps do not run?

This topic has been closed for replies.

3 replies

Inspiring
January 20, 2011

Sounds like your problem is different than mine was. I thought it might be similar since you were able to install other air apps.  If you still wanted to try , i had posted an apk on this other thread, post#9 :
http://forums.adobe.com/thread/745909?tstart=0

and the file itself (get ready to fight garbage pop ups)

http://www.megaupload.com/?d=MEH35U9B

January 20, 2011

Ok I finally figure it out. I had wrong runtime on emulator , and my phone obviusly runs some air apps (I haven't figure which ones )

I installed emulator runtime on emulator and my phone and now dev builds work fine on both of them. I know I should not install emulator runtime on the phone, but it is easier to test on my phone then on a emulator .

Thanks guys and gals (if any )

January 21, 2011

Where do I get the AIR runtime for Eclair (2.1)? Is it still available? It seems it used to be available on Labs, but is not any longer? Can someone send to me if it's not on labs any longer? I have a Droid Eris that isn't getting updated to 2.2... In lieu of that - where does one get the 2.2 runtime - I could probably use one of our work phones if need be - but would really like to be testing on my own device.

January 18, 2011

Have you enabled USB-Debugging on you device?

You can do this in your settings -> Applications -> Development

January 18, 2011

Yes, it is enabled.

BTW I am installing apps I build by uploading them on my FTP server and then download them trought browser. May that be the cause?

Participating Frequently
January 19, 2011

I just found out that if i build apk for device it will not even install on my wildfire, if i try to install apk build for emulator it installs on wildfire, but there is just black screen after i run them.

do someone has download link for air runtime for android, i probably have wrong one installed...


The emulator build isn't restricted to armv7 devices because that would prevent it from being installable on the emulator. Thus you can install it on your HTC Wildfire. That doesn't mean it will run on the device, though -- which is what you are seeing.

(You can get the runtimes from the AIR SDK, which in your case would be installed deep inside your Flash Pro folder.)

Chris W. Griffith
Community Expert
Community Expert
January 17, 2011

Which AIR for Android applications have you run? Are you certain that the AIR for Android is installed on device?

The reason I ask is now only is the processor too low, the version of Android needs to be 2.2 or later.

Chris

January 18, 2011

Yes I am sure that AIR is installed on the device, and it is running Android 2.2.

I noticed that when I publish apk from Flash I don't  have option to select path to android SDK below 2 checkboxes ( install app on device and run app on device after publishing)