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 Developer
atmanpathak
Posts: 17
Registered: ‎02-06-2013
My Device: BlackBerry Z10
My Carrier: AT & T
Accepted Solution

Android targetSDKVersion support in Blackberry 10.2.1

I am just wondering if i am making my android application with minSdkVersion 15 (ICS-4.0.3) and targetSdkVersion 19(Kitkat-4.4) on android. Can I install it on Blackberry 10.2.1 ? BB 10.2.1 supports Jelly Bean (4.2.2) but not sure it provides same sort of compatability layer how Android runtime provides.

 

Can anyone confirm or share their experiance related to this?

Please use plain text.
BlackBerry Development Advisor
jjasmann
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Android targetSDKVersion support in Blackberry 10.2.1

Hey atmanpathak,

 

You can use a minSdkVersion of 15, however you will be limiting the availability of your app to BlackBerry devices with OS 10.2 and onwards.

 

You can also use a targetSdkVersion of 19 with one caveat. If your app utilizes the libraries that are present in SDK levels above 17, they are likely to crash your app. This is because those libraries don't actually exist on the device (ex. ClassNotFoundException).

 

It's best to keep your ported Android app within a minimum SDK level of 10, and maximum SDK level of 17.

 

Cheers!

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Please use plain text.
New Developer
atmanpathak
Posts: 17
Registered: ‎02-06-2013
My Device: BlackBerry Z10
My Carrier: AT & T

Re: Android targetSDKVersion support in Blackberry 10.2.1

I am fine about that app can only be install on BB 10.2.1  or higher. So it shouldn't be problem if i make minimum sdk to 15 (ICS-4.0.3)

Please use plain text.
BlackBerry Development Advisor
jjasmann
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: Android targetSDKVersion support in Blackberry 10.2.1

Correct.

 

As long as minSdkVersion is >= 10 and <= 17, you should be okay. You're only limiting the devices your app is available to.

 

The real problem is if you set targetSdkVersion > 17 and use those libraries (as described above).

 

Cheers,

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Please use plain text.