Repacking an AIR based .apk to PlayBook .bar
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
.apk
to.zip
- Unzip the
.zip
file, it will create a folder by the same name as your app. ie:MyApp.zip
will beMyApp/
- On the command line
cd
toMyApp/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[/php]Note: Theassets_runtime
andicons
folders are specific to my application but they represent any files that need to be packaged into your application, change appropriately. The-device IP_ADDRESS
needs 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!
Pingback: Randy Troppmann » Adobe AIR and BlackBerry PlayBook
Pingback: Flex Based AIR on PlayBook – tutorial | EverythingFlex: Flex & AIR
Pingback: @renaun posts: Browse Files on PlayBook