Yesterday wrote an article about Android app conversion, which translates Android apps into the BlackBerry Playbook app via the BlackBerry Online conversion tool. Some netizens have said that the method is a bit cumbersome, so make up for the new conversion method today: Use the command line tool to convert Android apps to BlackBerry Playbook apps.
The first thing to emphasize is that command-line tools are easier to use, but have a certain need for users. The use of online Web pages to convert although more steps, but the operation is relatively simple. Therefore, for the initial contact of the students, suggest or use the previous blog online conversion tool is better.
If you are ready to use the command line tool to convert, you need to download the command line tool on the BlackBerry Pipe Network, as follows:
After the download is a zip file, the file name is: Commandlinetools.zip, extracted out there is a commandlinetoolsforrepackagingapktobar directory, the inside of the bin directory is the command line tool directory.
Add the above bin directory to the PATH environment variable and go to the command line interface to start the conversion work.
Note: The tool is executed in Java and requires the JRE to be installed.
There are three main tools to use:
Apk2bar: Used to convert an Android APK file to a playbook bar file
Blackberry-signer: Used to sign the generated bar file
Blackberry-deploy: For deploying the bar file, upload the bar file to the playbook.
Apk2bar How to use:
Apk2bar < need to convert APK file name >
Examples of Apk2bar use:
Apk2bar myhello.apk
Blackberry-signer How to use:
Blackberry-signer-storepass < certificate file password > < bar file name to sign >
Examples of Blackberry-signer use:
Blackberry-signer-storepass MyPassword Myhello.bar
Blackberry-deploy How to use:
Blackberry-deploy-installapp-device <playbook IP address >-package <bar file name >-password <playbook password >
Examples of Blackberry-deploy use:
Blackberry-deploy-installapp-device 192.168.0.104-package Myhello.bar-password 1234