Highlighted

How to install an AIR Android app from ADT command line?

Explorer ,
Jun 10, 2015

Copy link to clipboard

Copied

Hi,

I would like to install my AIR Android with ADT from the command line. I tried it with the string below but got errors like "app icons are missing":

adt -package -target apk-debug -connect -storetype pkcs12 -keystore myapp_android.p12 myapp.apk myapp-app.xml myapp.swf

What do I need to add to make it work?

Many thanks

TOPICS
Development

Views

630

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to install an AIR Android app from ADT command line?

Explorer ,
Jun 10, 2015

Copy link to clipboard

Copied

Hi,

I would like to install my AIR Android with ADT from the command line. I tried it with the string below but got errors like "app icons are missing":

adt -package -target apk-debug -connect -storetype pkcs12 -keystore myapp_android.p12 myapp.apk myapp-app.xml myapp.swf

What do I need to add to make it work?

Many thanks

TOPICS
Development

Views

631

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 10, 2015 0
Adobe Community Professional ,
Jun 10, 2015

Copy link to clipboard

Copied

App icons missing shouldn't stop it from building. Here's the article on ADT:

Adobe AIR * AIR Developer Tool (ADT)

It does just build the APK, it doesn't install it. I think you will need to use ADB for that.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 10, 2015 1
Explorer ,
Jun 12, 2015

Copy link to clipboard

Copied

Do I need to install something to use ADB? Can you please give me an example command to install an APK? Many thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 12, 2015 0
Adobe Employee ,
Jun 12, 2015

Copy link to clipboard

Copied

Hi, blogtom

You do not need to install anything to use adb.

adb is present in the AIR SDK folder in following path. If you cannot find it, you can search it by file name adb inside the AIR SDK.


<AIRSDK_ROOT>/lib/android/adb

you can easily install the apk file using the adb install command.

The below example shows installing a apk named Game.apk to an android device connected to your machine.

adb install Game.apk


Thanks

Roshan


Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 12, 2015 0
Adobe Employee ,
Jun 12, 2015

Copy link to clipboard

Copied

Use this command:


<AIRSDK_ROOT>/lib/android/adb install -r  <apk Name>

-r used to: replace existing application



Thanks

Piyush

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 12, 2015 0
Adobe Employee ,
Jun 10, 2015

Copy link to clipboard

Copied

Hi,

This is the command to install app on your device:

adt -installApp  PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? -package <apk-file | ipa-file>

e.g:  adt -installApp -platform ios -package <your ipa name>

Thanks

Piyush

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 10, 2015 0
Explorer ,
Jun 12, 2015

Copy link to clipboard

Copied

I tried it and got this error: install failed already exists

How to install an APK without uninstall it before? I used this command:

adt -installApp -platform android -package example.apk

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 12, 2015 0