Current location - Quotes Website - Signature design - How to transplant Android application to Blackberry PlayBook
How to transplant Android application to Blackberry PlayBook
Because PlayBook 2.0 has an Android Player component, Android applications can run on PlayBook simply by converting it into a bar file. Official website about the conversion from Android application to PlayBook application is as follows: /android/

As you can see from the above webpage, there are three ways to convert an Android application into a bar file of PlayBook:

Online conversion through web application

Transform in Eclipse environment through Eclipse plug-ins.

Use command-line tools for conversion

Among them, online conversion through web pages is the simplest. The following is the specific preparation and conversion process of this method.

1.Preparation of Android SDK

The conversion process needs the support of Android SDK, which needs to be installed in advance. Please refer to related articles for the installation of Android SDK.

2. Preparation of Playbook 2.0

In order to finally test the converted application, you must have a PlayBook 2.0 environment. If you have a script, you can register at the following website and upgrade the operating system of the script to version 2.0.

After registration, wait for a period of time (officially, within one hour), check the software updates on the PlayBook and start upgrading the PlayBook operating system. Specific operations are guided on the above websites.

If you don't have a script, you can only pass the simulator test.

3. Apply for a signature key

The application needs to be signed in the conversion process of Android application, and the application signature needs a signing key. So we need to apply for a signature key in BlackBerry official website.

You need to fill in basic information such as name and company name, as well as email address and PIN code. These two are more critical. The final signature key will be sent to the e-mail address filled in, and a PIN code is required to install the signature. Note that the PIN code here has nothing to do with the PIN code of the mobile phone or PlayBook. Just fill in a number between 6 and 10, such as 1234567890. When you finish, remember that you need to use it later.

Then, you will receive an email with a signing key, which contains two csj files:

RIM development key (RDK)

Berry script debugging token (PBDT)

The previous practice was to import the csj file into the script development environment to generate the p 12 key file, and then directly use the signing tool to sign it in the script development environment. Now that you have online tools, you can use csj files directly on the web page. Save two csj files which will be used later.

4. First conversion

After preparing the signature key, you can start to convert the apk file of Android on the website. Because the signing key needs to be set for the first conversion, the process of signing for the first time is a bit special.

Open the following webpage through a browser: /android/bpaa/

After opening, the welcome page appears as follows. Click "Go> > to go to the next step:

After the configuration is completed, the server will eventually convert the specified apk file into a bar file and sign the bar file. The generated file will be displayed in the results page, as shown below:

In this way, the first conversion work is completed, and the configuration of the signature key is completed, so the subsequent conversion work is not so complicated.

Then fill in your email address and select "I have prepared the signature key of blackberry tablet OS" and "I have rad and agree to the RIM SDK license agreement", which means telling the server that you have applied for a signature key. Be careful not to select "I always configure my computer to sign" to start the setting page of signing key. When you successfully set it up for the first time, you can choose this option by signing it later.

Click "Next" after selecting.

Then you will be prompted that the subsequent process needs some authorization, and you need to click the "Set applet permissions" button to authorize. Click "Next" after authorization.

In addition, you need to verify your apk file. You need to select the apk file to be converted and the directory of Android SDK, and then click the "Start Test" button to verify.

If the verification is successful, it will prompt "Your application is compatible with BlackBerry Runtime for Android Apps", which means that your Android application is compatible with the Android running environment on PlayBook.

Click "repackage &; Submit button for conversion.

Then enter the key step, because the signature key is not configured, here the system will prompt to configure the signature key.

Need to configure include:

RIM development key. Csj file

This file can be found in the mail with the signing key.

Blackberry playbook debugtoken.csj file

This file can be found in the mail with the signing key.

Keystore password

Set the password of the local certificate storage space, and set the password according to your own preferences. Please note that you need to enter it twice.

CSK password

The password of CSK is also set according to your own preferences, and you need to enter it twice.

PIN code filled in when registering.

What needs to be filled in here is the 6- 10 PIN code for filling in the application key.

Certificate path, file name

Specify the path and file name, and the generated information will be saved in this file.

name of the company

Fill in your company name. It seems that the server is not strict in checking the company name. Just fill in the company pinyin. The key is to remember this name and use it in future conversions.

Fill it out and click "Configure".