Compiling To Apk
Compiling To Apk
Compiling To Apk
To create an APK package, use the ADT package command, setting the target type t
o apk for release builds, apk-debug for debug builds, or apk-emulator for releas
e-mode builds for running on an emulator.
adt -package -target apk -storetype pkcs12 -keystore ../codesign.p12 myApp.apk m
yApp-app.xml myApp.swf icons
The example assumes that the path to the ADT tool is on your command-line shell s
path definition. (See Path environment variables for help.)
You must run the command from the directory containing the application files. Th
e application files in the example are myApp-app.xml (the application descriptor
file), myApp.swf, and an icons directory.
When you run the command as shown, ADT will prompt you for the keystore password
. (The password characters you type are not displayed; just press Enter when you
are done typing.)
Creating a debug APK package
To create a version of the app that you can use with a debugger, use apk-debug a
s the target and specify connection options:
adt -package -target apk-debug -connect 192.168.43.45 -storetype pkcs12 -keystor
e ../codesign.p12 myApp.apk myApp-app.xml myApp.swf icons
The -connect flag tells the AIR runtime on the device where to connect to a remo
te debugger. For most debugging features to work, you must also compile the appl
ication SWFs and SWCs with debugging enabled. See Remote debugging connection op
tions for a full description of the -connect flag.
On Android, the app must also have permission to access the Internet in order fo
r it to connect to the computer running the debugger. See Android permissions.
http://forums.adobe.com/thread/718308
Creating an APK package from an AIR or AIRI file
You can create an APK package directly from an existing AIR or AIRI file:
adt -target apk -storetype pkcs12 -keystore ../codesign.p12 myApp.apk myApp.air
The AIR file must use the AIR 2.5 namespace in the application descriptor file.
sudo adt -package -target apk -storetype pkcs12 -keystore cert.p12 FlashBuilderA
ndroidDemo.apk FlashBuilderAndroidDemo-app.xml FlashBuilderAndroidDemo.swf
http://blog.omarfouad.com/?p=334
COMMANDS
adb -e install -r [email protected]