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.

  1. 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/
  2. 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.

  1. In Adobe Flash Builder, on the Run menu, click Debug Configurations.

    This screen shows the run configurations screen

  2. In the list of configurations, right-click Mobile Application.
  3. Click New.
  4. On the Main tab, in the Launch method section, select the On device option.
  5. Select the Install and launch the application on the device checkbox.
  6. 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:
    1. In the Launch method section, click Configure.

      This screen shows the completed run configuration screen.

    2. In the Test devices section, click Add.

      This screen shows the test devices screen.

    3. On the Add BlackBerry Tablet OS Test Device screen, in the Device Name field, type a name for the BlackBerry Tablet Simulator.
    4. In the Device IP field, type the IP address of the simulator.
    5. Click OK.

      This screen shows the test devices screen with a simulator.

    6. Click OK.
    7. Click Apply.
  7. On the Common tab, in the Display in favorites menu section, select the Debug checkbox.

    This screen shows the common tab in the run configuration.

  8. Click Apply.
  9. Click Debug to start your application in the BlackBerry Tablet Simulator.

Debug or run your application

To run your application using a debug configuration, do one of the following:
  • 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.

To run your application using a run configuration, do one of the following:
  • Click the run icon.
  • On the Run menu, expand Run As. Click Mobile Application.