Test your application

After you have configured the plug-in preferences, setup target device, and added your Android project in Eclipse, you are now ready to check for compatibility and test your application by deploying it on the target device using a run or debug configuration.

Check for compatibility

This check allows you to verify if your Android application is compatibile with the the BlackBerry 10 OS. You can use this check to know the errors in your application and rework it.

  1. To perform a compatibility test, in Eclipse, in the Package Explorer navigation window, right-click your Android project. Click BlackBerry Tools > Verify Apk.
Android Plug-in tool verification data flow.

Launch configuration

You can create and launch a configuration to deploy and test your application on the target device. Remember that the file deployed in this task is an unsigned .bar file.

The following steps show you how to set up a run or a debug configuration in Eclipse.

  1. In Eclipse, in the Package Explorer navigation window, right-click your Android project. Click on either Run As > Run Configurations or Debug As > Debug Configurations.
  2. In the Run Configurations or Debug Configurations window, in the left side navigation window, under BlackBerry Android Application, select your application.
  3. Modify the configuration based on your requirements. Make sure to select the correct target device under the Target tab.
  4. Click either Run or Debug.

Once you have created a launch configuration, you can launch it again using the following step.

  1. In Eclipse, in the Package Explorer navigation window, right-click your Android project. Click on either Run As > BlackBerry Android Launch or Debug As > BlackBerry Android Launch.

The following workflow shows how the plug-in operates when a configuration is launched.

Android launch configuration.
comments powered by Disqus