Skip to main content
cforcloud
Participant
November 13, 2014
Answered

Porting existing Android native app to Adobe AIR

  • November 13, 2014
  • 1 reply
  • 883 views

I indent to port a existing Android native app to Adobe AIR for android. Reasons: To use my existing AS3 skills, "cost" for native is too high and soon port it to iOS.

Difficulties I face here:

  1. Existing app package, say "com.mygame.myapp" has to be retained. By using FB with AIR SDK, we get a "air." prefix to the package name. It becomes "air.com.mygame.myapp".
    Will this solution still solve the problem in AIR SDK removing "air." prefix from package name has any working solution!?.
    The help link http://helpx.adobe.com/air/kb/opt-out-air-application-analytics.html is dead now. iOS specific is found here Opt-out | Adobe AIR app analytics | iOS
    Please suggest me a Mac suitable solution.

  2. In Android, using a ".keystore" file, we need to export as the ".APK" file. In AIR, if we publish using a new ".p12" signature file would it be compatible with Google Play, and it rules.

App's existing users should find difficulty in upgrading the app.

Another unanswered thread Possible to remove "air." appended on package and target a .keystore rather than .p12?

Thanks a lot.

This topic has been closed for replies.
Correct answer cforcloud

I was able to figure it out with the help of Jeff Ward Ooh, I just discovered how to easily remove the 'air.' prefix when packaging…

Tested and works fine with AIR SDK 15, Mac OSX 10.10 Yosemite. actionscript 3 - Android App ID prefix problem - Stack Overflow

java -jar /FULL_PATH_TO_AIR_SDK/lib/adt.jar -package -target apk-captive-runtime -storetype jks -keystore <DEVELOPER>.keystore -storepass <PASSWORD> Main.apk Main-app.xml Main.swf -extdir /PATH_TO_ANE_DIRECTORY

1 reply

cforcloud
cforcloudAuthorCorrect answer
Participant
November 14, 2014

I was able to figure it out with the help of Jeff Ward Ooh, I just discovered how to easily remove the 'air.' prefix when packaging…

Tested and works fine with AIR SDK 15, Mac OSX 10.10 Yosemite. actionscript 3 - Android App ID prefix problem - Stack Overflow

java -jar /FULL_PATH_TO_AIR_SDK/lib/adt.jar -package -target apk-captive-runtime -storetype jks -keystore <DEVELOPER>.keystore -storepass <PASSWORD> Main.apk Main-app.xml Main.swf -extdir /PATH_TO_ANE_DIRECTORY

cforcloud
cforcloudAuthor
Participant
November 15, 2014

How to include both armv7 and x86 using "-arch" option? By default it is armv7 only.

Colin Holgate
Inspiring
November 15, 2014

I don't  think it works that way. You make two builds to upload to Google Play, and the store delivers the right one to the user.