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.
- 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.
- Click Start
.
- Add a device:
- In the Android AVD Manager, click New.
- In the Create new Android Virtual Device window, enter a name.
- For the target, select a supported Android version.
- Set any other available options you want, then click Create AVD.
- Select the new virtual device and click Start.
- In Launch Options, optionally modify the default display scaling, then click
Launch.
- When the Android screen finishes
loading, install the Sybase container files to the emulator:
- Open a command prompt.
- 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
- 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