Building the BlackBerry Hybrid Web Container Using the Provided Source Code

You can use the provided BlackBerry Hybrid Web Container template to build a custom user interface and configure other resources.

Prerequisites
Task

This example uses Eclipse as the development environment. If you use another development environment, the steps might vary.

  1. Extract the files from SMP_HOME\MobileSDK<version>\HybridApp\Containers\BB\BB_HWC_<version>.zip
  2. In Eclipse, import the BlackBerry Hybrid Web Container template as a legacy BlackBerry project:
    1. Select File > Import.
    2. Expand the BlackBerry folder.
    3. Select  Import Legacy BlackBerry Projects.
    4. Click  Next.
    5. Specify the JRE and, in the BlackBerry Workspace field, browse to the HWCtemplate.jdw file and select the project to import.
    6. Select Copy BlackBerry projects into workspace to create a copy of the imported project in the Eclipse workspace.
    7. Click Finish.
  3. Supply a signing key.
Related reference
BlackBerry Hybrid Web Container Customization