Testing an Application Using a Emulator

Run and test the application on an emulator and verify that the application automatically registers to Unwired Server using the default application connection template.

Prerequisites
You must have created an Android Virtual Device when you installed the Android SDK in your Android development environment. The Android Virtual Device (AVD) must use the same target as the test package.
Task
  1. In the Eclipse Package Explorer, right-click the project and select Run As > Run Configuration.
    The ADT plugin for Eclipse installs your application, starts the emulator automatically, and launches the application. The application will automatically register with Unwired Server using the default application connection template. Once you build your application, deploy the Android package (APK) file. For more information on publishing your Android application, see http://developer.android.com/guide/publishing/publishing_overview.html.
  2. In Sybase Control Center verify that the application connection was created in Applications > Application Connections.
    When the application has successfully registered, the application connection displays a value of zero in the Pending Items column.
  3. Test the functionality of the application. Use debug tools as necessary, setting breakpoints at appropriate places in the application.