Today i tried with the android application porting to BB10, as we know that we can do it, i followed few steps which i wants to share with you.
1)
make sure that you have eclipse android setup with minimum eclipse 3.8, android 2.3.3 with api level 10.
hope you have the above setup with given requirements as
a) Eclipse version 3.8
b)Android SDK platform-tools
c)SDK platform Android 2.3.3, API 10
install the BlackBerry Plug-in for Android Development Tools
Before you begin, make sure you have installed Eclipse 3.8
In Eclipse, on the Help menu, click Install New Software > Add.
In the Name field, enter a name for the plug-in.
In the the Location field, enter the URL of the update site for the plug-in. The URL of the update site is http://bdsc.webapps.blackberry.com/android/downloads/eclipseplugin/.
Click OK.
In the Install window, in the Name field, select the BlackBerry Plug-in for Android Apps check box, and also select the check boxes for the items under it.
If you are using the beta update site and do not have the ADT Plug-in, the newest version will be installed at this time as well.
Click Next.
Complete the instructions in the Review Licenses window. Click Finish.
After you install the plug-in, you should verify that the installation correctly located the Android SDK in the plug-in preferences. To verify the location, in Eclipse, on the Window menu, click Preferences > Android and ensure the path in the SDK location field matches the location of your installation folder.
After confirming the filepath, you should also verify that the SDK Platform Android 2.3.3, API 10 was installed correctly in Eclipse. To verify and download if necessary, on the Window menu, click Android SDK Manager and look in the Packages section and ensure that the status of SDK Platform Android 2.3.3, API 10 displays as Installed.
2) Create a new project with name HelloWorld
we need to make sure that we followed given steps :
# In the Build Target section, select Android 2.3.3 as the Target Name.
# In the Application Info window, in the Minimum SDK field, make sure to select to 10 (Android 2.3.3).
After making the HelloWorld , In Eclipse, in the Package Explorer navigation window, right-click your Android project. Click BlackBerry Tools > Add BlackBerry Nature to Project.
we need signing keys for our purpose and for this :
In Eclipse, on the Windows menu, click Preferences > BlackBerry > BlackBerry Tools SDK > Bar Signer or Targets.
Click BlackBerry Tablet OS Deployment Setup Wizard.
go through the https://www.blackberry.com/SignedKeys/codesigning.html for code signing keys.
In Eclipse, on the Windows menu, click Preferences > BlackBerry > BlackBerry Tools SDK > Bar Signer.
In the RIM Signing Authority section, click Register.
In the Register with RIM Signing Authority window, complete the RDK CSJ Path field and the PBDT CSJ Path field by browsing to the location of the CSJ files.
In the CSJ Pin path field, enter the PIN that you used to fill out the code signing keys request form.
Choose a password in the CSK Password field. This is the keystore password that you use to create a developer certificate.
Create a developer certificate
In Eclipse, on the Windows menu, click Preferences > BlackBerry > BlackBerry Tools SDK > Bar Signer.
In the Developer Certificate section, click Create certificate. If you previously created a developer certificate, click Select certificate... and browse to the location of the developer certificate.
If you are creating a new certificate, then in the Create Developer Certificate window, in the Certificate Path field, type the path of the location where you want to store your developer certificate.
In the Author field, type your company name.
In the Keystore Password field, type a password to control access to the certificate. This is the CSK Password that you created to register the code signing keys.
In the Confirm Keystore Password field, type the password you provided in the previous step.
Click OK.
Configure target device
To test your Android application, you must use the plug-in to configure the device that you will perform the testing on. This can be your BlackBerry PlayBook tablet, the BlackBerry Tablet Simulator, or your BlackBerry 10 device. You can configure a target device using the setup wizard or the plug-in preferences. The following steps show you how to configure the target device using the plug-in preferences.
In Eclipse, on the Windows menu, click Preferences > BlackBerry > BlackBerry Tools SDK > Targets. Click Add to add a target.
Complete the Device Name field, Device IP field and Password field.
Click OK.
Switching
for the emulator of blackberry BB10 go through http://us.blackberry.com/sites/developers/resources/simulators.html
and download the vmvare player and bb10 dev alpha simulator
Test your application
Check for compatibility
This check allows you to verify if your Android application is compatibile with the BlackBerry Tablet OS or BlackBerry 10. 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.
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.
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.
finally you can see the output as follows: