Testing your application using the command line
You can use the command line tools that are included with the BlackBerry Tablet OS SDK for Adobe AIR to package and deploy applications to the BlackBerry Tablet Simulator. Before you can package your BlackBerry tablet application, you must compile your Adobe ActionScript project using the tools included in the Adobe Flex SDK.
The Flex SDK also includes tools to debug your application on the BlackBerry Tablet Simulator. For more information about the Flex SDK, visit http://opensource.adobe.com/wiki/display/flexsdk/Flex+SDK.
Package and deploy your application
Before you begin:
- Use the command line tools included with the Adobe Flex SDK to compile your Adobe ActionScript project into a SWF application.
- Add the path to the bin subfolder where you installed the BlackBerry Tablet OS SDK for Adobe AIR to the PATH environment variable for your operating system.
- For more information about command line options, run blackberry-airpackager from the command line with no options.
- Open a command prompt.
- Navigate to the folder where your SWF application and XML configuration files are stored.
- Type the following command to package and run your
application in the BlackBerry Tablet
blackberry-airpackager -package output_bar_file_name -installApp -launchApp project_name-app.xml project_name.swf any_other_project_files -device IP_address -password password -forceAirVersion 3.1
Your application may not be using Adobe AIR runtime version 3.1. To compile and deploy your BlackBerry PlayBook application, use -forceAirVersion 3.1 to force the packager to use version 3.1 of the Adobe AIR runtime.