Creating an APK package
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 [Link] m
[Link] [Link] 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 [Link] (the application descriptor
file), [Link], 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 [Link] -storetype pkcs12 -keystor
e ../codesign.p12 [Link] [Link] [Link] 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.
[Link]
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 [Link] [Link]
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
[Link] [Link] [Link]
[Link]
COMMANDS
adb -e install -r HELLO@.apk
adt -package -target apk-emulator -storetype pkcs12 -keystore manish.p12 HELLO2.
pk [Link] [Link] [Link]
adt -package -target apk-emulator -storetype pkcs12 -keystore manish.p12 demo2.a
pk [Link] [Link]