This is another one of those tidbits that is mean as a FYI. It might be useful in prototyping or trying out old content without having to setup a specific project for the PlayBook.
These steps assume that you have installed the BlackBerry Tablet OS SDK in the default location of {APPLICATIONS_PATH}/Adobe Flash Builder 4/sdk/blackberry-tablet-sdk-0.9.0.
Steps to repackage an AIR based .apk to AIR PlayBook .bar application:
- Rename your
.apkto.zip - Unzip the
.zipfile, it will create a folder by the same name as your app. ie:MyApp.zipwill beMyApp/ - On the command line
cdtoMyApp/assets/ - On the command line run:
PHP:/Applications/Adobe\ Flash\ Builder\ 4/sdks/blackberry-tablet-sdk-0.9.0/bin/blackberry-airpackager -package MyApp.bar -installApp -launchApp META-INF/AIR/application.xml MyApp.swf assets_runtime/ icons/ -device 192.168.1.102
Note: The
assets_runtimeandiconsfolders are specific to my application but they represent any files that need to be packaged into your application, change appropriately. The-device IP_ADDRESSneeds to be changed to your simulator's ip. Also the command above is on a Mac, but it would similar on windows calling blackberry-airpackager.exe.
Thats it!







