Getting started with porting

There are millions of lines of C and C++ code waiting to be ported to BlackBerry 10. With the BlackBerry 10 Native SDK, you can reuse that code and bring it to many eager users. The Native SDK provides useful tools and commonly used libraries that you can use to quickly get your existing app running reliably on BlackBerry 10 devices.

Devices that run the feature-rich and powerful BlackBerry 10 OS have capabilities that you may not have even considered for your app. For example, a desktop game written in C++ is not likely to include code that handles touch screen gestures or logic to accommodate a touch screen keyboard. You should also be aware of platform differences that can affect the libraries that your app uses, so it's helpful to choose libraries that are open source or that you have the source code rights for. The Native SDK provides lots of open source libraries that have been tested on BlackBerry 10 to make porting your app easier. If your app is written in a language other than C or C++, you need to convert languages as well.

Device showing the gameplay longboard sample app.

BlackBerry 10 devices can be separated into two general categories:

  • Full-touch devices: These devices use a touch screen as the primary input method, as well as physical buttons or keys, such as volume keys. These devices include a touch screen keyboard that appears on the screen when keyboard input is required.
  • Devices with a physical keyboard: These devices include a physical keyboard in addition to a touch screen.

The Native SDK works on Windows, Mac OS, and Linux platforms, so you can work in your favorite environment. Ideally, you should pick the platform that the software you want to port compiles on. For example, if your app is available for Linux, go ahead and use Linux as your development environment. Then, you are dealing with only the differences between two POSIX-compliant operating systems (Linux and BlackBerry 10), along with some additional hardware differences such as touch screens, lack of a physical keyboard, and so on.

Last modified: 2015-07-24



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

comments powered by Disqus