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
New Contributor
winsonssh
Posts: 6
Registered: ‎01-05-2013
My Device: BlackBerry Playbook
My Carrier: T-Mobile

Android NDK Compatibility

[ Edited ]

If my Android app has NDK library, and I want to support BOTH Blackberry 10.2 and Blackberry 10.1 or BELOW. 

Because Playbook still using old Blackberry OS.

 

What should I do?

 

Thanks

Please use plain text.
Developer
mishi
Posts: 101
Registered: ‎03-02-2013
My Device: Dev Alpha

Re: NDK Compatibility

I think this wanted to go into the Native Development topic. :smileyhappy:

Just don't use API's that have been introduced in 10.2

You can check the version requirements here: https://developer.blackberry.com/native/reference/cascades/

But I am not an NDK developer :smileyhappy:
Please use plain text.
BlackBerry Development Advisor
mwhiteman
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10
My Carrier: Rogers

Re: Android NDK Compatibility

Hello,

 

Support for Android NDK (JNI code) is only supported on BlackBerry 10.2.1. So you will need to test and target your application only on the latest BlackBerry OS.

 

Cheers,

Matt

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Please use plain text.
Developer
mishi
Posts: 101
Registered: ‎03-02-2013
My Device: Dev Alpha

Re: Android NDK Compatibility

Sorry I have misunderstood.

These abbreviations could be sometimes confusing.
Please use plain text.
Developer
rruzic
Posts: 79
Registered: ‎04-05-2013
My Device: Simulator - developer
My Carrier: No provider

Re: Android NDK Compatibility

I must have misunderstood something.

 

It is being said, that BlackBerry's Android Runtime now supports native code. I did a completely fresh install of the development environment (Eclipse, ADT, Blackberry plugin) according to the Blackberry ADT plugin installation specifications, and BlackBerry verification still fails with message "class: com.example.MyApp.Foobar. uses NATIVE access".

 

Am I doing something wrong here? I did set the target version to 10.2 (10.2.1 was not available).

 

So, how do I get my ADT with BlackBerry plugin to repackage and install my Android app, which is using some native code, on my BlackBerry device?

Please use plain text.
BlackBerry Development Advisor
mwhiteman
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10
My Carrier: Rogers

Re: Android NDK Compatibility

Hello

You will have to use the latest 2.0.1 beta tooling to enable building applications with native access.

Cheers
Matt
Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Please use plain text.
Developer
rruzic
Posts: 79
Registered: ‎04-05-2013
My Device: Simulator - developer
My Carrier: No provider

Re: Android NDK Compatibility

Ahh, ok.

 

Are there any instructions regarding integration of the latest tools into the Eclipse/ADT/BlackBerry plugin development environment?

 

I have downloaded the beta tools and the verifier ran over my .apk without errors, even the repackaged .bar file was created, but i wasn't able to install it onto my test device. Are there any instructions on how to do that? I uploaded the repackaged .bar file on my test device, expecting the file manager to run the installation, btu nothing happened.

 

What am I doing wrong?

Please use plain text.
BlackBerry Development Advisor
mwhiteman
Posts: 159
Registered: ‎11-21-2008
My Device: BlackBerry 10
My Carrier: Rogers

Re: Android NDK Compatibility

All the documentation for the new 2.0 beta tools can be found here: http://developer.blackberry.com/android/documentation/blackberry_android_development_tools_2.0_beta....

 

As for your second question, the device doesn't support BAR file installation. Only APK file installation. You can deploy the application from Eclipse to your device for testing, or you can place the APK file on your device to install it via the file manager. Just make sure its a release build and not a dev release.

 

Cheers,

Matt

Matt Whiteman
Product Manager, Android, BlackBerry Java & Simulators
Please use plain text.
Developer
rruzic
Posts: 79
Registered: ‎04-05-2013
My Device: Simulator - developer
My Carrier: No provider

Re: Android NDK Compatibility

Ok, I got it, thank you very much.

 

BTW, initial impression is really good, Android runtime had improved immensely.

Please use plain text.