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. 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. Click Start Programs > Android SDK Tooks > AVD Manager.

    avd manager
  3. 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
  4. Select the new virtual device and click Start.
  5. In Launch Options, optionally modify the default display scaling, then click Launch.

    launch avd
  6. When the Android screen finishes loading, install the Sybase container files to the emulator:
    1. Open a command prompt.
    2. In the command prompt, run the Android_InstallDir\android-sdk\platform-tools\adb.exe commmand to install the SybaseDataProvider.apk package file.
      The apk files are located in UnwiredPlatform_InstallDir\MobileSDK\HybridWeb\Android
      For example:
      C:\Android\android-sdk\platform-tools\adb install ^
      C:\Sybase\UnwiredPlatform\MobileSDK\HybridWeb\Android\SybaseDataProvider.apk
    3. Run the same command to install Workflow.apk.
      For example:
      C:\Android\android-sdk\platform-tools\adb install ^
      C:\Sybase\UnwiredPlatform\MobileSDK\HybridWeb\Android\Workflow.apk