Skip to main content
January 17, 2011
質問

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

  • January 17, 2011
  • 返信数 3.
  • 7027 ビュー

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?

このトピックへの返信は締め切られました。

返信数 3

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?

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

It is possible that might be the cause if the MIME type are incorrectly set. IF you do have the Android SDK installed then you could use the command line to run ADB to install the APK.

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)