mohamedibrahem
Lurker
Before you begin make sure you have following items installed:
Android SDK installed on your computer.
To distribute applications to BlackBerry tablet users using the BlackBerry World storefront, must first acquire the code signing keys for Blackberry OS 10.
After your request has been processed, you will receive the following two
files in separate emails:
RIM Development Key (RDK) file
BlackBerry PlayBook or BlackBerry 10 debug token (PBDT) file
You will then use the
files to register with RIM to create a certificate, which you will use to sign your apps, and create debug tokens. These will allow you to test unsigned apps on a BlackBerry PlayBook tablet or a BlackBerry 10 device.
Step 1: Download the Blackberry Tools SDK for Android apps
Download the Blackberry OS 10 Tools for Android apps.
Extract it to a directory and add it to
variables.
Step 2: Configure your computer to sign apps and create debug tokens.
Once your application is accepted, you receive two CSJ registration files by email: one for app signing, and one for creating debug tokens. You'll use these files to register with the RIM Signing Authority.
The following steps help you configure your computer to sign applications and create debug tokens:
1.On the command line, navigate to the directory where you saved the
files received via e-mail.
2.Configure your keystore to communicate with the RIM Signing Authority by using the
. You can find
and
in the
subfolder where you installed the BlackBerry OS 10 SDK.The password you specify in the
parameter allows you to access the RIM Signing Authority using your identity. You should protect the password.
3.Register with the RIM Signing Authority using your CSJ registration files by using the
l . Specify the registration PIN you entered in the PIN field on the web form when you requested permission to sign applications.
4.Create a Developer Certificate by using the
tooltool. Ensure that the common name (company name) parameter matches the name submitted when you requested the CSJ registration files.The following command creates a Developer Certificate in the file named
. The password you specify in the -storepass parameter allows you to use the
file to sign BAR files. You should protect the
file and its password.
You should only perform these steps once.
Step 3: Repackaging your Android applications
Your next step to get your Android app ready for the BlackBerry 10 device is to repackage the APK file into a format that is compatible with the BlackBerry OS 10.
I have created
which runs
for converting the Android APK file to Blackberry OS 10 Package BAR file.
Set the variables in
and run
command to begin converting the file.
t's recommended to copy the Android APK file into the same directory where the
and
are located so the the Blackberry BAR file will appear in the same directory
Please download the script described in this blog post to help you create your Blackberry 10 apps.
Android SDK installed on your computer.
To distribute applications to BlackBerry tablet users using the BlackBerry World storefront, must first acquire the code signing keys for Blackberry OS 10.
After your request has been processed, you will receive the following two
Code:
.csj
RIM Development Key (RDK) file
BlackBerry PlayBook or BlackBerry 10 debug token (PBDT) file
You will then use the
Code:
.csj
Step 1: Download the Blackberry Tools SDK for Android apps
Download the Blackberry OS 10 Tools for Android apps.
Extract it to a directory and add it to
Code:
PATH
Step 2: Configure your computer to sign apps and create debug tokens.
Once your application is accepted, you receive two CSJ registration files by email: one for app signing, and one for creating debug tokens. You'll use these files to register with the RIM Signing Authority.
The following steps help you configure your computer to sign applications and create debug tokens:
1.On the command line, navigate to the directory where you saved the
Code:
CSJ
2.Configure your keystore to communicate with the RIM Signing Authority by using the
Code:
blackberry-signer tool
Code:
blackberry-signer
Code:
blackberry-keytool
Code:
bin
Code:
-cskpass
Code:
<code> blackberry-signer -csksetup -cskpass <create_a_password> </code>
Code:
blackberry-signer too
Code:
<code> blackberry-signer -register -csjpin <PIN> -storepass <csk password from (a)> <RDK_CSJFile> <PBDT_CSJFile>` </code>
Code:
blackberry-key
Code:
output_file.p12
Code:
.p12
Code:
.p12
Code:
<code> blackberry-keytool -genkeypair -keystore <output_file.p12> -storepass <create_a_password> -dname "cn=<company_name>" -alias author` </code>
Step 3: Repackaging your Android applications
Your next step to get your Android app ready for the BlackBerry 10 device is to repackage the APK file into a format that is compatible with the BlackBerry OS 10.
I have created
Code:
build.xml
Code:
apk2bar tool
Set the variables in
Code:
build.properties
Code:
ant
t's recommended to copy the Android APK file into the same directory where the
Code:
build.xml
Code:
build.properties
Please download the script described in this blog post to help you create your Blackberry 10 apps.