Configuring the Android Emulator

Configure an Android emulator for testing a Sybase Mobile Workflow package.

Note: The steps or interface may be different depending on which Android SDK version you are using.
  1. Install the Android SDK.
    Go to http://developer.android.com/sdk/ to download and install the Android SDK. Click Install and accept the default values. Follow the instructions on the Android page, with these exceptions:
    • See Supported Hardware and Software for the most current version information for mobile device platforms and third-party development environments.
    • When specifying the install location, consider choosing a path that does not contain spaces, such as C:\Android\android-sdk. Some versions of the Android SDK do not work correctly when installed in the default drive:\ Program Files location.
    • If the Android installer stops with a message that the required Java JDK is not found on your system (even when the JDK is installed), try clicking Back and then Next, one or more times, until the installer detects the JDK.
  2. Install the SDK Platform-tools:
    1. Run the Android SDK Manager
    2. Select these options:
      • In Tools, Android SDK Platform-tools.
      • The version of Android whose emulators you want to use, and that Unwired Platform supports.
    3. Click the Install button.
  3. Click Start Programs > Android SDK Tooks > AVD Manager.

    avd manager
  4. Add a device:
    1. In the Android AVD Manager, click New.
    2. In the Create new Android Virtual Device window, enter a name.
    3. For the target, select a supported Android version.
    4. Set any other available options you want, then click Create AVD.

    create new avd
  5. Select the new virtual device and click Start.
  6. In Launch Options, optionally modify the default display scaling, then click Launch.

    launch avd
  7. When the Android screen finishes loading, open a command prompt and run the Android_InstallDir\android-sdk\platform-tools\adb.exe command to install HybridWebContainer.apk to the emulator:
    For example:
    C:\Android\android-sdk\platform-tools\adb install ^
    C:\Sybase\UnwiredPlatform\MobileSDK213\HybridWeb\Android\HybridWebContainer.apk