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™ Development

Reply
Highlighted
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel
Accepted Solution

what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

 

 

Does Android 4.2.2 and Android 4.4 are supported?

 

 

What is the version supported by BlackBerry simulator.

 

 

 

Thanks

 

 

 

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

Hey srk2012,

 

BlackBerry PlayBook supports Android 2.3.3 (API level 10). The BlackBerry PlayBook simulator has the same level of compatibility.

 

This differs from BlackBerry 10 devices/simulators that now use Android 4.2.2 (API level 17).

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

[ Edited ]

 And what about   API 19 ?

 

 

 

 

Ok Thank you for the valuable reply given.

 

 

Then I will proceed with porting a android Tablet application to  BlackBerry PlayBook application.

 

 

Thanks

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

Yes I have started  porting my android Tablet App to BlackBerry  and got the following logcat errors while Running on PlayBook Target

 

when set to Google API's   Android 4.2.2  and API  17

 

 

01-30 12:39:51.979: E/AndroidRuntime(85414051): FATAL EXCEPTION: main
01-30 12:39:51.979: E/AndroidRuntime(85414051): java.lang.NoSuchMethodError: android.view.View.setSystemUiVisibility
01-30 12:39:51.979: E/AndroidRuntime(85414051): at com.yupptv.activity.Main.playVideo(Main.java:20123)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at com.yupptv.activity.Main$GetLivePlayUrlAsyncTask.onPostExecute(Main.java:5653)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at com.yupptv.activity.Main$GetLivePlayUrlAsyncTask.onPostExecute(Main.java:1)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at android.os.AsyncTask.finish(AsyncTask.java:417)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at android.os.AsyncTask.access$300(AsyncTask.java:127)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at android.os.Handler.dispatchMessage(Handler.java:99)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at android.os.Looper.loop(Looper.java:123)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at android.app.ActivityThread.main(ActivityThread.java:3687)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at java.lang.reflect.Method.invokeNative(Native Method)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at java.lang.reflect.Method.invoke(Method.java:507)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
01-30 12:39:51.979: E/AndroidRuntime(85414051): at dalvik.system.NativeStart.main(Native Method)
01-30 12:40:25.147: E/MediaPlayer(85627043): start called in state 1
01-30 12:40:25.148: E/MediaPlayer(85627043): error (-89, 0)
01-30 12:40:25.148: E/MediaPlayer(85627043): stop called in state 0
01-30 12:40:25.302: E/ActivityThread(85627043): Failed to find provider info for com.google.plus.platform

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

Android API level 19 is unsupported at the present time for all BlackBerry 10 devices.

 

In consideration of your trace that you posted, you might not actually be building (or deploying) against API 17.

 

setSystemUiVisibility(int) came into Android's source in API 11, so it would make sense that you're seeing this error if any of the following conditions are met:

 

a) Your project settings are setup to compile against API 10

b) You're deploying a 4.2.2+ application directly to the PlayBook (which only supports up to 2.3.3)

 

Hopefully this helps.

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

Yes you are absolutely right.

 

Iam  setting my project settings to API 10  and my  project is  4.2.2+  application.

 

 

Can my project work perfectly on my PlayBook?  when deployed

 

 

Iam seeing the layout erros   and mediplayer related  when deployed like below:

01-30 13:15:44.783: E/AndroidRuntime(14270558): FATAL EXCEPTION: main
01-30 13:15:44.783: E/AndroidRuntime(14270558): java.lang.NoSuchMethodError: android.widget.Gallery.setAlpha
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at com.yupptv.activity.Main.onItemSelected(Main.java:23067)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at android.widget.AdapterView.fireOnSelected(AdapterView.java:871)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at android.widget.AdapterView.access$200(AdapterView.java:42)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at android.widget.AdapterView$SelectionNotifier.run(AdapterView.java:837)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at android.os.Handler.handleCallback(Handler.java:587)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at android.os.Handler.dispatchMessage(Handler.java:92)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at android.os.Looper.loop(Looper.java:123)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at android.app.ActivityThread.main(ActivityThread.java:3687)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at java.lang.reflect.Method.invokeNative(Native Method)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at java.lang.reflect.Method.invoke(Method.java:507)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
01-30 13:15:44.783: E/AndroidRuntime(14270558): 	at dalvik.system.NativeStart.main(Native Method)

 

New Developer
Posts: 39
Registered: ‎01-10-2014
My Device: BlackBerry Q5
My Carrier: BlackBerry

Re: what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

Android 4.2.2  and minimum API   is 17

Retired
Posts: 264
Registered: ‎01-08-2013
My Device: BlackBerry 10 Dev Alpha B
My Carrier: Bell

Re: what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

Hey srk2012,

 

It's possible that your app could run on the PlayBook, assuming it lies within the boundaries of supported APIs.

 

If you analyze the output provided by the repackaging process (it will also be in the *.WRN file), you can cross-reference each item with Unsupported APIs for PlayBook to see what will not work, at which point you can make the necessary modifications to bring your app closer to compatibility.

 

Smiley Happy

 

 

Justin Jasmann | Android Application Development Consultant
Developer Relations
developer.blackberry.com
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: what is the android version (Upto whch version of Android) supported by BlackBerry PlayBook?

Your suggestion seems to be very good advice for me.

 

 

Ok I will follow it.

 

 

Thanks