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.
- To perform a compatibility test, in Eclipse, in the Package Explorer navigation window, right-click your Android project. Click BlackBerry Tools > Verify Apk.
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.
- 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.
- In the Run Configurations or Debug Configurations window, in the left side navigation window, under BlackBerry Android Application, select your application.
- Modify the configuration based on your requirements. Make sure to select the correct target device under the Target tab.
- Click either Run or Debug.
Once you have created a launch configuration, you can launch it again using the following step.
- 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.