Preparing your PhoneGap app for an Android release
This section generally focuses on things that are specific for the Android platform. This is by no means a comprehensive checklist, but some of the common tasks that you should go through before releasing your app to the Android world.
Testing your app on real devices
For most of this book, we tested our app on the Android emulator. It is always good to run your app on an actual handset to see how the app is working. To run your PhoneGap app on a real device, issue the following command after you plug your handset into your computer:
cordova run android
You will see that your app now runs on your handset.
Exporting your app to install on other devices
In the previous section we talked about installing your app on your device. What if you want to export the APK so that you can test the app on other devices? Here's what you can do:
As usual, build your app using
cordova build android
Alternatively, if you can, run
cordova build release
The previous...