Testing your application using Adobe Flash Builder
In Adobe Flash Builder, you can start your application in either run or debug mode. In run mode, your application executes but cannot be suspended or examined. In debug mode, your application can be executed, suspended, and resumed. This allows you to examine, test, and debug your application.
Delete the adt.jar file
This section provides a workaround for a known issue with Flash Builder 4.7 and the BlackBerry Tablet OS SDK for Adobe AIR (262922).
If you are using Adobe Flash Builder 4.6, you can skip this section.
When trying to publish your application using Flash Builder 4.7, you may encounter the following error:
Packaging failed:1
Error 102: Invalid namespace http://ns.adobe.com/air/application/3.4
Error: AIR validation failed
To solve this issue, you must to delete the adt.jar file from the SDK installation folder. This will force the packaging tool to use the adt.jar file provided with Flash Builder 4.7, and will validate namespace 3.4 valid.
- Navigate to the BlackBerry Tablet OS SDK for Adobe AIR installation directory.
Operating System Default location of the adt.jar file in the BlackBerry Tablet OS SDK for Adobe AIR Windows \Program Files\Research In Motion\blackberry-tablet-sdk-2.1.0\lib\ Mac /Developer/SDKs/Research In Motion/blackberry-tablet-sdk-2.1.0/lib/ - Delete the adt.jar file.
By default, JAR files are hidden in the Windows environment.
Create a debugconfiguration
To run or debug your application, you must create a launch configuration in Adobe Flash Builder that packages your application and opens it on the BlackBerry Tablet Simulator.
- In
Adobe Flash
Builder, on the
Run menu, click
Debug Configurations.
- In the list of configurations, right-click Mobile Application.
- Click New.
- On the Main tab, in the Launch method section, select the On device option.
- Select the Install and launch the application on the device checkbox.
- If you have already
configured a
BlackBerry Tablet
Simulator using the
BlackBerry Tablet OS Deployment Setup Wizard,
select the
BlackBerry Tablet
Simulator from the drop-down menu. Otherwise, complete the
following steps:
- In the
Launch method section, click
Configure.
- In the
Test devices section, click
Add.
- On the Add BlackBerry Tablet OS Test Device screen, in the Device Name field, type a name for the BlackBerry Tablet Simulator.
- In the Device IP field, type the IP address of the simulator.
- Click
OK.
- Click OK.
- Click Apply.
- In the
Launch method section, click
Configure.
- On the
Common tab, in the
Display in favorites menu section, select the
Debug checkbox.
- Click Apply.
- Click Debug to start your application in the BlackBerry Tablet Simulator.
Debug or run your application
- Click the debug
icon.
- On the Run menu, expand Debug As. Click Mobile Application.
The Console pane displays any debug output information. You can switch to the Debug perspective for a more detailed view of your debug session.
- Click the run
icon.
- On the Run menu, expand Run As. Click Mobile Application.