Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Similar to Android, PhoneGap's plug-in for BlackBerry has two parts, one on each side of the PhoneGap framework (bridge). We have a native part (a class-extending PhoneGap's plug-in) and a JavaScript file using PhoneGap's JavaScript framework.
We assume you are using BlackBerry WebWorks SDK version greater than version 1.5.
We assume that BlackBerry WebWorks SDK is installed on C:\BBWP, and we have Java 1.6 SDK and Ant installed and in path. We also assume our development directory is D:\PhoneGap-Plugin, and we have PhoneGap SDK present in D:\PhoneGap-plugin\PhoneGap-1.1.0 directory. Refer to Chapter 3 to recall the system requirement for BlackBerry PhoneGap development.
The steps for creating and testing BlackBerry plug-in are as follows: