Porting apps from Android

You have two options to bring your Android app over to BlackBerry 10:
  • Port the application code directly and rebuild the app for BlackBerry 10.
  • Use the repackaging tools for the BlackBerry Runtime for Android apps.

The repackaging tools for the BlackBerry Runtime for Android apps take an existing project or APK file and converts it for use on the BlackBerry 10 OS. This conversion enables the app to run on the BlackBerry Runtime for Android apps, which supports a number of APIs on BlackBerry 10 but may incur compatibility or performance differences. This is not the ideal approach for an Android native app.

If your Android app is implemented using native code languages (C or C++), if your app requires high performance, or if you want to make use of features specific to BlackBerry 10, then porting your app directly is the approach to take. This gives you the flexibility to choose the APIs that best suit your app and provides complete control over each API to fine tune application logic and performance.

This guide covers how to port an application that uses the Android NativeActivity class and is implemented in native code for the BlackBerry 10 OS. It covers common application tasks that you may need to port over to the BlackBerry 10 OS using the BlackBerry 10 Native SDK. It describes how functions are performed on the Android and BlackBerry 10 platforms and has code samples to compare and get you started.

This guide also shows you the equivalent functions between Android and the BlackBerry 10 OS for each feature.

Getting started

The first step to bring your app over to BlackBerry 10 is to download and install the BlackBerry 10 Native SDK. The Native SDK offers the highest level performance and lowest-level access to the operating system. The Getting started guide has all the information you need to install and configure the Native SDK as well as steps to build and deploy an app.

Last modified: 2015-03-31

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus