Array

Installing AIR on an Android Device via a Server

Must Read

Student Loans Consolidation – Three Benefits That Make Your Life Simpler

If you are a student or a graduate, it's quite likely you accumulated a bit of student debt while...

Home Equity Loans vs. Home Equity Line of Credit – What’s the Difference?

Home equity loans and home equity lines of credit are very beneficial, and can provide homeowners with quick cash...

Five tips, information and people involved in

Today is a competitive, regulated and financially stressed environment means that organizations are living in the location on the...

Reality Check: Illinois Dwight’s Maximum Security Prison Correctional Center for Female Inmates

The Dwight prison center is 1 of the 6 Illinois Department of Corrections (idoc) maximum security prison for adult...

Helpful Facts and Methods to Get an Online Unsecured Debt Consolidation Loans

If you want to apply for online unsecured debt consolidation loans, then you will find this article very informative....

Government Consolidation Loan – Costs and Benefits

There are a number of government programs that facilitate faster loan payments, especially in cases of multiple loans. These...
Admin
test

To install an AIR application via a server, on the Android device select Settings→Applications→Unknown Sources on the Android device.

Your server MIME type needs to be edited. The MIME media type for .apk is application/vnd.android/package-archive.

Upload the APK package to your web server. Open the native web browser on the device and enter the package URL. The device will download and install the application automatically. This may be useful if you want to make the application available to several members of a development team for testing purposes.

Other Tools

Developing AIR for Android is not limited to the tools mentioned so far. You can use a range of other products, but you need to manually install the SDKs and use the command line tool. Please refer to the links provided for more information on how to use them.

The Android SDK is used to install the application on the device.

The AIR 2.6 SDK is used to package and deploy AIR applications for Android. For more information, go to http://www.adobe.com/products/air/sdk/.

In all of the following development environments, you need to “overlay” the AIR SDK. Links are provided for instructions:

  • The free Flex and AIR SDK uses the Flex amxmlc compiler and AIR command-line tools. See http://opensource.adobe.com/wiki/display/site/Home.
  • Power Flasher sells FDT, a development environment for ActionScript 3 andMXML, and offers the open source SOSmax, a socket output utility for debugging. See http://fdt.powerflasher.com/docs/Community_Resources#Multiscreen:_Targeting_Mobile_Devices.
  • Flash Develop is an open source code editor for Windows. See http://www.flashdevelop.org/community/viewtopic.php?f=9&t=8079&p=37453&hilit=AIR#p37453.
  • JetBrains sells IntelliJ IDEA, a cross-platform editor particularly favored by Java developers. See http://www.jetbrains.com/idea/whatsnew/index.html.

When you use a tool other than Flash Professional or Flash Builder, you need to manually create the application descriptor. It is not generated automatically, and it must be packaged along with your application. Here is the code for creating the application descriptor:

<application xmlns=”http://ns.adobe.com/air/application/2.6″>
<?xml version=”1.0″ encoding=”utf-8″ standalone=”no”?>
<application xmlns=”http://ns.adobe.com/air/application/2.6″>
<id>first</id>
<filename>first</filename>
<versionNumber>1.0.0</versionNumber>
<initialWindow>
<content>first.swf</content>
<visible>true</visible>
<fullScreen>true</fullScreen>
</initialWindow>
<supportedProfiles>mobileDevice</supportedProfiles>
<android>
<manifestAdditions><![CDATA[
<manifest android:installLocation=”auto”>
<uses-permission android:name=”android.permission.INTERNET”/>
</manifest>
]]></manifestAdditions>
</android>
</application>

You need a code-signing certificate. If you do not have one, you can create a self-signed certificate with the AIR ADT -certificate command. The instructions are available online at http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7f74.html.

To package the AIR application as an APK file, run the AIR Developer Tool (ADT) from the command line:

AIR-sdk-path/bin/adt -package -target apk -storetype pkcs12-keystore yourCertificate.p12 first.apk Main-app.xml first.swf

To install it on the device, use the Android ADB tool:

android-sdk-path/tools/adb install first.apk

If the application is already on your device, use the -r command (for reinstall):

android-sdk-path/tools/adb install -r first.apk

Conclusion

Congratulations, you have just created and tested your first application. You can expand on it and make it more dynamic by requesting the user to enter a phone number. To do so, provide an input text field, or create a custom-designed numeric UI.

 

 

Latest News

Digital Marketing for Beginners

Digital marketing for starter, Let to basic learning about connecting with your audience in the right place at the...

What are 7 things poor people do that the rich don’t?

1. poor people watch TV in which people read books how many hours you spend in front of the TV and when was the...

Top 18 best small business ideas for beginners starting

A small business can be frightening and requires plenty of careful planning there are many small business ideas which can be beneficial as well...

Summer that makes you happy

We saw were already here I've been thinking about some of the things. I used to do with my husband even though he had...

4 Point to helpful tips specifically for caregivers

What you need to take a vacation. I know it sounds impossible creative and try to make it work for you almost everyone needs...

More Articles Like This