Development Tips and Tricks - adapt-it/adapt-it-mobile GitHub Wiki

This topic contains tips and tricks that might come in handy while developing adapt-it-mobile. If you find something that might be useful for development, post it here.

Installing Android debug modules

The PhoneGap Build service currently produces output for iOS, Android and Windows Phone. To test out the Android output (.apk file), perform the following steps:

  1. Download the .apk file from either the PG build's dashboard page or its external shared page.

  2. Open up the Android Virtual Device Manager, select a virtual device and click Start...

  3. In the dialog that displays, click Launch to launch the selected device.

  4. Once the device has started, click the Applications icon to view the currently installed apps. If adapt-it-mobile is in the list, click and hold the adapt-it-mobile icon and drag it over to the Uninstall option -- click Yes to uninstall the application.

  5. Open up a Terminal or command line window and CD into the directory where the .apk was downloaded in step 1.

  6. Type the following in the command line: adb install adapt_it_mobile-debug.apk. The app should install into the opened Android Virtual Device. At this point, you can click adapt-it-mobile and test out the app.

Note: to test screen rotation, use Ctrl+f11 and Ctrl+f12 (see the full list of keyboard commands here: http://developer.android.com/tools/help/emulator.html#KeyMapping ).