BlackBerry

Porting an Adobe AIR app to BlackBerry 10

Earlier in the week, we told you how BlackBerry will be dropping support for Adobe AIR Runtime in OS 10.3. While this may affect a minority of developers, if you develop apps using Adobe AIR, you can repackage your existing BlackBerry 10 Adobe AIR apps as Android apps, and port them to BlackBerry 10. You can use the BlackBerry Runtime for Android apps on BlackBerry 10 OS version 10.2.1 or later.

There are two easy ways you can do this.

Exporting a release build with FDT

To use the FDT IDE to convert your Adobe AIR app into an .apk file:

  1. Open your app in the FDT IDE.
  2. On the main menu, choose Project > Properties
  3. In the Properties dialog box, from the left navigation menu, select Android.
  4. Select the Build tab.
  5. Select or create your application descriptor file, and your app’s SWF file.
  6. Select the Deploy tab.
  7. In the Application Store setting section, select the radio button for Export application with captive runtime.
  8. In the Export Application section, set the Deploy Location field. This is the path to where you want to save the .apk file that’s created.
  9. Click the Export Application button.
  10. Click OK to close the dialog box.

When FDT has finished compiling and repackaging your application as an .apk file, a dialog box is displayed telling you that the operation was successful.

Exporting a release build with Adobe Flash Builder

To use the Adobe Flash Builder to convert your Adobe AIR app into an .apk file:

  1. Open your app in Adobe Flash Builder.
  2. On the main menu, choose Project > Export Release Build.
  3. In the Export Release Build dialog box, in the Export section, use the Browse button to select a folder where you want to save the resulting .apk file.
  4. Click Next.
  5. On the Deployment tab, under Export Options, select Export application with captive runtime.
  6. Set any required items in each of the other tabs.
  7. Click Finish to create your new .apk file.

Don’t forget that before you can submit your app to BlackBerry World, the .apk file must be repackaged as a BlackBerry 10 OS compatible .bar file.

Notes

When you resubmit your app to the BlackBerry World vendor portal, set the value of the minimum supported OS to 10.2.1.

If your application uses Adobe AIR 3.7 and Adobe Flex 4.5 or earlier, you must include the captive runtime in your app. As of Adobe AIR 3.8 and Adobe Flex 4.6, the Adobe AIR captive runtime is packaged in the APK file by default.[signoff predefined=”Enjoy this?” icon=”icon-users”][/signoff]

My Cart Close (×)

Your cart is empty
Browse Shop

Rapid Mobile

Rapid Mobile uses cookies, tokens, and other third party scripts to recognise visitors of our sites and services, remember your settings and privacy choices, and - depending on your settings and privacy choices - enable us and some key partners to collect information about you so that we can improve our services and deliver relevant ads.

 

By continuing to use our site or clicking I Accept, you agree that Rapid Mobile and our key partners may collect data and use cookies for personalised ads and other purposes, as described more fully in our privacy policy.

 

You can change your settings at any time by clicking Manage Settings or by visiting our Privacy Centre for more detailed information.

 

Privacy Settings saved!
Cookie Services

When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies.Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.

These cookies allow us to count visits and traffic sources, so we can measure and improve the performance of our site.

We track anonymized user information to improve our website.
  • _ga
  • _gid
  • _gat