Getting started with porting
There are millions of lines of C and C++ code out there waiting to be ported to BlackBerry 10. With the BlackBerry 10 Native SDK, you can leverage that code and bring it to many eager users. The Native SDK provides useful tools and commonly used libraries that you can use to get your existing application running quickly and reliably on BlackBerry 10 devices.
It's important to keep in mind that BlackBerry 10 drives feature-rich and powerful devices, with capabilities that you may not have even considered for your application. For example, a desktop game written in C++ is not likely to include code that handles touch screen gestures or include logic to accommodate a virtual keyboard. You should also be aware of platform differences that can impact the libraries your application uses, so it's ideal to choose libraries that are open-source or that you have the source code rights for. Luckily, the Native SDK provides plenty of open-source libraries that have been tested on BlackBerry 10 to make your life easier. Your application should be programmed in C or C++, otherwise you'll need to convert languages as well.
- Full-touch devices: These devices use a touch screen as the only input method. They include a virtual keyboard that appears on the screen when keyboard input is required.
- Keyboard devices: These devices include a physical, QWERTY keyboard in addition to a touch screen. They have a smaller screen size than full-touch devices.
The Native SDK works on Windows, Macintosh, 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 application is available for Linux, go ahead and use Linux as your development environment. Then, you are basically dealing with 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.
After you select an appropriate application to port, it's a good idea to try to compile it in your development environment. If you can’t build the project in an environment that supports it, you are unlikely to be successful porting it to BlackBerry 10.
Where should I begin?
If you want to learn how to port your app from a specific platform (such as iOS or Android) to BlackBerry 10, take a look at the porting guides that are included in the Gaming & Porting section:
- Porting apps from the Android NDK
- Porting apps from the BlackBerry PlayBook
- Porting apps from iOS
- Porting Qt applications
If you want to learn more general concepts about how to port apps to BlackBerry 10, check out the links below.
Last modified: 2013-12-21