Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting Blackberry 10 Android runtime

I ported my android app to bb10 and it works quite well. However there are a couple of features I should turn off because they require the Google Play store. When I had a similar problem with the Amazon Kindle Fire I dealt with it by checking android.os.Build.MODEL and blacklisting Kindle devices. Is the right approach to take on BB10 and if so what are the model strings for current and future devices? Or is their a better way of dealing with this?

like image 620
Jaldhar Avatar asked Feb 20 '26 02:02

Jaldhar


1 Answers

You can use the System.getProperty method to detect if your Android application is running on a BlackBerry PlayBook tablet, or BlackBerry 10 device.

System.getProperty(“os.name”);

On a BlackBerry device, this returns "qnx".

Via: http://supportforums.blackberry.com/t5/Android-Runtime-Development/How-to-Detect-if-an-Android-Application-is-Running-on-a/ta-p/1470313