Building the Android Hybrid Web Container Outside of Eclipse

You can build the Android Hybrid Web Container independent from Sybase Unwired Platform.

  1. Open a command prompt and navigate to the base directory of the Hybrid Web Container project.
  2. Run either the ant debug or ant release command, depending on whether you want to debug or release the Hybrid Web Container.
    You can download Apache Ant from http://ant.apache.org/bindownload.cgi, if necessary.
    A file named either HybridWebContainer-debug.apk or HybridWebContainer-release-unsigned.apk (depending on the command you used) is added to the bin folder. If a file already exists with that name, it is overwritten.
  3. Use Android Debug Bridge (ADB), which is included in the Android SDK installation, to install the .apk to the emulator.
    1. Launch an Android Virtual Device (AVD) that does not have the Hybrid Web Container installed (or uninstall it if it is installed).
    2. In the Command Prompt window, navigate to the folder that contains the adb.exe file, which should be in the …/android-sdk/platform-tools/ folder.
    3. Execute: adb install <path>, where <path> is the full filepath to the HybridWebContainer.apk file.