Would you like to tell us how we are doing?

You bet No thanks

Android Native support

Android native code on Blackberry

The Android NDK allows you to write parts of your app using native-code languages such as C and C++. This can help you reuse existing code libraries written in either language, but most apps do not need the Android NDK.

 

Do not use the Android NDK to write generic native code that runs on Android devices. Your apps should be written in Java, should handle Android system events, and should deal with the Android app life-cycle.

 

The Android NDK does not benefit most apps, as using native code doesn't generally result in improved performance. However, using the Android NDK does increase the complexity of your app. Good choices for the Android NDK include self-contained, CPU-intensive operations that don't allocate much memory, such as signal processing or physics simulation.

 

BlackBerry 10 supports both the ARMv5TE and ARMv7-A machine code instruction sets.

 

To see installation information and downloads for the Android NDK, see System and Software Requirements on the Android NDK website. If you have any issues with repackaging Android NDK apps for BlackBerry 10, please let us know by giving feedback.

Known Issues and Limitations

The following table lists known issues and limitations when using the Android NDK or when repackaging Android NDK apps for BlackBerry 10

Limited support for the Linux virtual file systems (/proc, /sys, and /dev).

Many of the native system libraries in the Android system images are not frozen and could be changed or deleted in later updates.

The Android NDK does not work with the BlackBerry 10 Device Simulator, as native calls are not supported.

The Android C++ runtime provides minimal support for C++ features. However, the Android NDK provides more advanced runtimes that you can link into your app.

The Android NDK supports a limited set of system headers for native APIs. To see the list of supported headers, visit Development tools on the Android NDK website.

Interprocess communication APIs for UNIX System V are not supported.

 

The Android NDK comes with documentation included in the installation .zip file. You can find a more detailed list of limitations in the <ndk>/docs/ directory.



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

comments powered by Disqus