Write platform-specific features

No matter which mobile platform you target an app for, your app always performs common tasks or needs to do similar things. When you port your app, you should have a good understanding of specific functionality that requires porting.

In most cases, your app probably does one or more of the following things:

  • Execute a main loop
  • Take user input to change the app's state (e.g., using touch or orientation changes)
  • Display graphics on the screen
  • Access the file system
  • Handle audio
The BlackBerry 10 OS supports these and many more functions so it's important to know how they work in comparison to iOS. This understanding helps to ensure that you port your app in the most effective manner to have a similar experience — if not better — on BlackBerry 10 devices.