user10504
user10504

Reputation: 139

Identify BlackBerry phones

How can I identify a BlackBerry KeyOne or Key2 phone from within Java on Android? I'm thinking that I could check Build.MANUFACTURER or Build.PRODUCT, but I don't have one of these phones on hand to test at the moment.

I have an app that has a bug on these phones, so I need to check for the type of phone and use a different method when needed, but I don't want to mess with the way it works on other devices.

Upvotes: 0

Views: 90

Answers (1)

tijn167
tijn167

Reputation: 597

The following one ouputs for example

String brandName = android.os.build.BRAND // Will output BlackBerry
String deviceName = android.os.build.MODEL // Will output the specific device

Can't check it with BlackBerry but this should do the job

Upvotes: 1

Related Questions