The following is extracted from official blackberry developer site.I have tried this out and have succeeded in testing my android app on my z10. You can find my app here. So you can ask doubts you may have via the comments section below.
Before you begin:
Make sure that you have the latest version of Android Studio and the BlackBerry Plug-in for AndroidStudio.
Installing Android Studio
For information about installing Android Studio, see Installing Android Studio.
Install the BlackBerry Plug-in for Android Studio
Before you begin, make sure that you have the Android Studio correctly installed and configured on your computer.
There is an alternate way to install the plug-in on the Mac OS or Linux. You can extract the BlackBerry Plug-in for Android Studio zip file directly to <your_android_studio_installation_folder>\plugins folder.
- Download the BlackBerry Plug-in for Android Studio.
- Open your project in Android Studio.
- On the File menu, click Settings.
- Select Plug-ins from the navigation list on the left.
- Click Install plugin from disk.
- Select the location of the zip file containing the BlackBerry Plug-in for Android Studio.
- Click Apply.
You must restart Android Studio for your changes to take effect. After Android Studio restarts, theBlackBerry ADB Proxy Manager icon appears in the main toolbar. The BlackBerry ADB Proxy Manager manages connections to the Android Debug Bridge (ADB).
After you finish:
After you install the plug-in, you should verify that Android Studio has successfully installed theAndroid SDK required for your app.
To verify that the required Android SDK (API level) for your app has been installed:
- Start Android Studio.
- On the Tools menu, click Android and then click SDK Manager.
- Verify that the required Android SDK (API level) for your app has a Status of Installed.
The maximum API level supported is Android 4.3 (API 18).
The BlackBerry ADB Proxy Manager
The BlackBerry Android Device Bridge (ADB) Proxy Manager is added when you install the BlackBerry Plug-in. It displays all of your connected BlackBerry devices and simulators.
You can use the BlackBerry ADB Proxy Manager to:
- Establish an ADB connection between your IDE and your BlackBerry 10 device or BlackBerry 10 Device Simulator
- Generate a device debug token and deploy it to your BlackBerry 10 device
Using the BlackBerry ADB Proxy Manager in Android Studio
- Connect your BlackBerry 10 device to your computer with a USB cable, or start the BlackBerry 10 Device Simulator.
- Open your project in Android Studio.
- Click to start the BlackBerry ADB Proxy Manager.
- Click the start button to use your BlackBerry 10 device, or BlackBerry 10 Device Simulator with the BlackBerry ADB Proxy Manager.
- After your device or simulator has connected to the BlackBerry ADB Proxy Manager, run or debug your Android app.
Disconnecting the BlackBerry ADB Proxy Manager
When you're done working with your Android app, click the stop button to disconnect your device or simulator from the BlackBerry ADB Proxy Manager.
Create and deploy a device debug token
A device debug token allows you to deploy and debug an unsigned Android app on your BlackBerry 10device. You don't need a device debug token when you're using the BlackBerry 10 Device Simulator to test and debug your Android apps.
For more information, see the BlackBerry 10 Simulator Documentation.
Before you begin testing, see Getting started.
You must Create a BlackBerry ID Signing token and Developer certificate before you can test and debug yourAndroid app on a BlackBerry 10 device.
When you have a BlackBerry ID Signing token and Developer certificate configured, you can connect aBlackBerry device that doesn't contain a device debug token and use the BlackBerry ADB Proxy Manager to create a new device debug token.
Follow these steps to create and deploy a device debug token:
- Enable Development Mode on your BlackBerry 10 device. For more information, see Set up your test environment.
- Connect your BlackBerry 10 device to your computer with a USB cable.
- Open your project in your IDE.
- Click on the main toolbar to start the BlackBerry ADB Proxy Manager.In the BlackBerry ADB Proxy Manager, when you try to start a BlackBerry 10 device that doesn't have a device debug token, the Missing Debug Token message appears in the Statuscolumn. A dialog box that begins the process of creating a device debug token is displayed.
- In the Confirmation dialog box, click Yes.
- In the BlackBerry Debug Token Request dialog box, click Deploy Debug Token.
- In the Password Prompt dialog box, enter your BlackBerry ID Signing token password and clickOK.For more information, see Create a BlackBerry ID Signing token.The new device debug token is created and deployed (uploaded) to your BlackBerry 10 device.
After you've created and deployed the device debug token, start your BlackBerry 10 device in theBlackBerry ADB Proxy Manager.
0 comments :
Post a Comment