Using Multiple Hybrid Web Containers on the Same BlackBerry Device

Configure the Hybrid Web Container so that two or more Hybrid Web Containers can coexist on the same BlackBerry device.

Use a different COD module name, and make other changes to your new Hybrid Web Container, such as for the icon .png image, to differentiate between the Hybrid Web Containers on the device.

  1. Double-click on the file BlackBerry_App_Descriptor.xml to open it.
  2. In the Application tab, change the title of the Hybrid Web Container.
  3. In the Build tab, change the output file name to the name you used in step 2, but remove any spaces or dashes, since these are illegal characters for output files.
  4. Open the CustomizationHelper.java file for editing.
  5. Find the method named getAppId() and replace Brand.OEM_HYBRIDAPP_APPID with a unique name for your application. 
    The user must be registered in Sybase Control Center with a device ID that matches the value you use in this step. You may need to create the device ID in Sybase Control Center.
  6. Open the CustomizationHelper.java file for editing.
  7. Change the return value of getApplicationIndicatorIconName to the new indicator icon name, for example:
    public class CustomizationHelper
    {
    ....
    public final String getApplicationIndicatorIconName()
    { //return HWCMessagesScreen.INDICATOR_PNG; return "icon.png"; }
    }