PhoneGap-based BlackBerry platform tutorial

Source: Internet
Author: User

BKJIA Translation]

1,Requirements

◆ Windows XP (32-bit) or Windows 7 (32-bit and 64-bit)

◆ For a 4.x device, see this guide.

2,Install SDK + PhoneGap

Download and install Sun JDK 32-bit ). Add it to your PATH variable.

Download and decompress Apache Ant. Add it to your PATH variable.

Download the BlackBerry WebWorks SDK and install it in C: \ BBWP.

Download the latest version of PhoneGap and decompress it to C: \ Dev \ phonegap.

3,Create a new project

◆ Open the command window and go to the BlackBerry \ WebWorks directory. Enter ant create-Dproject. path = C: \ Dev \ phonegap \ BlackBerry \ WebWorks \ sample and press Enter.

◆ Switch to the newly created Directory, which is located in C: \ Dev \ phonegap \ BlackBerry \ WebWorks \ sample.

◆ Open the project. properties file in your frequently-used editor and change bbwp. dir = to bbwp. dir = C: \ BBWP.

4,Hello World

In the project directory, enter ant build in the Command window to build the PhoneGap sample project. Note: This is a sample PhoneGap project, not a basic Hello World application. If you want to say Hello world, you can edit the index.html file in the project wwwdirectory to say Hello World.

5A,Deploy to Simulator

• When you are in the project directory, enter ant load-simulator at the command prompt.

• Press the BlackBerry button on the simulator to go To the download section. You will see that your application has been installed there.

5B,Deploy to Device

• You must enter this form to obtain your signature key from RIM.

• When you are in the project directory, enter ant load-simulator at the command prompt.

• Press the BlackBerry button on the simulator to go To the download section. You will see that your application has been installed there.

It's done!

You can also view the detailed guide here.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.