7 December 2011
Before starting this tutorial:
Once you have an app that you've tested, you're ready to create a release build of your application, with your own private signing key. This tutorial describes the process for doing just that.
You must meet the following system requirements before you can continue with this tutorial.
After setting up Eclipse with the Android SDK and ADT plug-in, the first step is to import the project you built with Dreamweaver into Eclipse. Eclipse streamlines the process of creating a signing key and generating a release build of your project.
Next, you need to add the PhoneGap.jar to the build path of your project, otherwise it will not compile correctly.
Now you can run your application to verify that it was imported correctly.
Depending on your setup, this will start the Android emulator and start your application in it, or it will launch the application on your device if you have one plugged in and have enabled USB debugging. To enable USB debugging on your device, go to Settings > Applications > Development and enable USB debugging.
Note: It can take a minute or longer to launch the application in the emulator. If the emulator fails on the first try, close it and run your application again.
To create a release build of your application, you must sign the application. Before you can sign the application you have to create a signing certificate. Since you are using Eclipse and the ADT Eclipse plug-in, you can sign and create a release build in a few easy steps.
The first step is to turn off debug mode.
android:debuggable="true"and change the test to
Now you're ready to create and sign your application.
You have now succesfully created a signed application.
You have created a signing key and signed your application using it. You can test your APK file on your device by emailing the file to your device or by using the
adb command line tool to install it.
For information on alternative methods of signing your application without using Eclipse, see Signing Your Application on the Android Developers website.
If you run into issues importing a project into Eclipse, check out the getting started guide on the PhoneGap website.
Now that you have created a release build on Android, you may want to step through the following articles:
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.
Tutorials and samples