Removing PhoneGap from the BlackBerry Hybrid Web Container

Remove all references to the PhoneGap library that is linked to the BlackBerry Hybrid Web Container.

Leaving PhoneGap in place does not cause any issues, but does increase overall application size by about 500KB.

  1. Open the AmpBrowserScreen.java file for editing and comment out this line:
    //m_browserField.addListener( new HWCBrowserFieldListener(new HWCWidgetConfigImpl(), m_browserField) );   
  2. Right-click the HybridWebContainer project and choose Properties..
  3. Under Java Build Path, click the Libraries tab.
  4. Remove these libraries:
    • PhoneGapExtension.jar
    • WebWorksCommon.jar
    • WebWorksExtension.jar
    • WebWorksFramework.jar
  5. Delete the same jar files from the libs folder.
  6. Delete the xml folder, which hosts plugins.xml.