Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Android™ Runtime Development

Reply
Developer
packiaraj
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified
Accepted Solution

Android code reuse in blackberry 10

Hi to all,

 

We have android app in google app, now our customer want to publish the app in balckberry also, we want to know is there any possible to reuse the existing android source code in blackberry 10?

 

Note: I am not asking about the apk to BAR conversion

 

Thanks & Regards

Packiaraj M

Please use plain text.
Developer
packiaraj
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Android code reuse in blackberry 10

Can any one please clarify this.. it would be very helpful for us

Please use plain text.
New Contributor
discordance
Posts: 5
Registered: ‎05-05-2013
My Device: Developer
My Carrier: N/A

Re: Android code reuse in blackberry 10

[ Edited ]

Any code using the standard java libraries can be reused with the Blackberry JDE. User interfaces and anything else using android libraries will have to be rewritten for blackberry.

Please use plain text.
Developer
packiaraj
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Android code reuse in blackberry 10

Thanks for your reply friend.. so we can reuse the android source code with BB 10 native IDE rite? but i dont think it is possible... can you please give me some reference url or example then it would be very helpful for us

Thanks & Regards,
Packiaraj M
Please use plain text.
Administrator
MSohm
Posts: 14,268
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Android code reuse in blackberry 10

You can't use Java code in the BlackBerry Native SDK.  You can use C, C++, QML and JavaScript there.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
packiaraj
Posts: 231
Registered: ‎07-09-2009
My Device: Not Specified

Re: Android code reuse in blackberry 10

ok thanks MSohm :smileyhappy:

Please use plain text.
New Contributor
discordance
Posts: 5
Registered: ‎05-05-2013
My Device: Developer
My Carrier: N/A

Re: Android code reuse in blackberry 10

Apologies for not getting back to this sooner.

 

https://developer.blackberry.com/java/download/jde/

 

As MSohm states you can't use java with the native IDE but if you use the JDE above you will be able to reuse code from java.* packages. Any classes and methods etc imported from android.* will need to be rewritten to use blackberry equivalents.

Please use plain text.