Saturday, April 12, 2014

Create Phonegap Project in Blackberry

How to create PhoneGap project in Blackberry

Prerequisites:

Download and install java from below location


Download and install Blackberry SDK from below location


Download and extract Phonegap from below location


Get and Install signing keys

Request signing keys from the below location. 

https://www.blackberry.com/SignedKeys/

Providing official mail ID in the request form is mandatory. You will get three .CSI signature keys from blackberry. You must remember the PIN defined yourself in the request form; it is needed to install the singing key. 

How to set up Blackberry Signature Key

To install the signature key follow below steps

1) Go to command prompt and locate your Blackberry Webworks Packager Installed location.
        EX: C:\BBWP\bin\>

2) Type blow command 
        java   -jar    SignatureTool.jar    <.csi file path>

3) A prompt will open and will ask PIN (you entered when you requested signing key) and “Password” to                 compile the Smartphone App.

4) Remember this password; it is needed to compile the app every time.

Blackberry IDEs

We can use any editor for Blackberry Webworks development.

1) Dreamweaver

2) Ripple emulator

3) Eclipse

4) Notepad ++

API’s available for Blackberry Webworks development is

1) Phonegap API

2) Blackberry Webworks API

Development process
Create Project

1) Create index.html file under your project folder.

2) Create config.xml file under your project folder.

Compile Project

1) Go to you project directory and create a zip file of your files (index.html, config.xml, etc).
        EX: ProjectName.zip

2) Go to command prompt and locate your Blackberry Webworks Packager Installed location.
        EX: C:\BBWP\

3) To compile the file type the following command and enter
        C:\BBWP\>BBWP      D:\Locate\Your\Project\Directory\ ProjectName.zip    /g   SignKeyPassword

Now two folders “OTA Install” “Standard Install” will be available in your project directory

4) To load into simulator, click on load option from simulator file menu, locate to .COD file of your “Standard Install” Folder.

5) To load into your mobile type below command and enter.
        C:\BBWP\>bin\JavaLoader    –u   load     D:\Locate\Your\Project\Directory\bin\StandardInstall\               ProjectName.cod