- BlackBerry Device Software 5.0
The BlackBerry® Web platform in BlackBerry® 6 was updated to be the WebKit rendering engine. This greatly enhanced the level of rendering fidelity due to enhanced support for web standards and performance enhancements. The improved browser provided supportfor the HTML5 standard and officially dropped support of Gears much like the rest of the industry. BlackBerry Web and WebWorks developers who have leveraged the Gears APIs in their applications will need to update their code to support this change.
How it works?
We realize that you obviously don’t want to have to do all of the leg work to detect what’s available, so inside the toolkit, we’ve built in the logic to determine if it’s needed or not. If the BlackBerry Browser is the BlackBerry Device Software 5.0 version, the toolkit will be used, and if the BlackBerry device user is using the more powerful WebKit engine included in BlackBerry 6, the toolkit will simply not be leveraged.
This toolkit will save a lot of time and code management since you’ll be able to run your BlackBerry WebWorks application on either BlackBerry Device Software version with no worry about compatibility.
Here are the steps on how to install and leverage the toolkit:
- Save the .zip file attached to this article named "HTML5-to-Gears.zip"
- Extract the contents of this file to the root folder or to a subfolder of your BlackBerry WebWorks or web application.
- Ensure that the html5_init.js and html5_worker.js files are in the root folder or in a subfolder of your BlackBerry WebWorks or web application.
- Update your BlackBerry WebWorks application, replacing any calls to Gears APIs with their corresponding HTML5 functionality.
- For a BlackBerry WebWorks application, package the application in a .zip file and compile it.
- Test your BlackBerry WebWorks application functionality on both BlackBerry Device Software 5.0 and BlackBerry 6.
For more details please read the BlackBerry WebWorks SDK Release Notes.
BlackBerry 6 Simulator
Use a BlackBerry® Smartphone Simulator running BlackBerry 6 to accurately test and verify how well the changes provided in this article improve your BlackBerry WebWorks applications. You can download a BlackBerry 6 Smartphone Simulator from the BlackBerry 6 home page.