As you might know BB10 device support Android application. But to install Android application on BB10, first you need to convert .apk file to .bar file.
I already have install BB10 NDK (Native Development Kit ), so I did not struggled with installing certificate file and setup the signer. BB10 NDK installer and IDE did that for me.
You will also need android sdk installed on your pc, before you begin. You can find detailed instruction here at BlackBerry Development site.
Following are few steps that I often use to convert APK to BAR file.
1) export ANDOID_HOME varible
2) Verify if APK file does not you unsupported APIs.
3) If your APK does not use unsupported APIs then you can go ahead and covert APK to BAR to test on your device.
4) Install BAR file to development device.
Following will deploy all BAR files under test folder to device.I find this method easier.
Or you can deply individual BAR file using following command.
Once testing is done, you can use blackberry-signer command to sign BAR file and publish it on App World. But I did not tried it my self. I just wanted to install one android app on my BB10 and my device is always on development mode so I just used BAR files with Debug token.
I already have install BB10 NDK (Native Development Kit ), so I did not struggled with installing certificate file and setup the signer. BB10 NDK installer and IDE did that for me.
You will also need android sdk installed on your pc, before you begin. You can find detailed instruction here at BlackBerry Development site.
Following are few steps that I often use to convert APK to BAR file.
1) export ANDOID_HOME varible
export ANDROID_HOME=~/android_sdk/sdk/
2) Verify if APK file does not you unsupported APIs.
./apk2barVerifier ./ANDROID_APPLICATION.apk
3) If your APK does not use unsupported APIs then you can go ahead and covert APK to BAR to test on your device.
./apk2bar ./ANDROID_APPLICATION.apk -d DEBUG_TOKEN_FILE
4) Install BAR file to development device.
Following will deploy all BAR files under test folder to device.I find this method easier.
./batchbar-deploy ~/Desktop/test 169.254.0.1 DEVICE_DEVELOPMENT_PASSWORD
Or you can deply individual BAR file using following command.
./blackberry-deploy -installapp -package ./BAR_FILE.bar -device 169.254.0.1 -password DEVICE_DEVELOPMENT_PASSWORD
Once testing is done, you can use blackberry-signer command to sign BAR file and publish it on App World. But I did not tried it my self. I just wanted to install one android app on my BB10 and my device is always on development mode so I just used BAR files with Debug token.