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
Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip
Accepted Solution

How to get device model, e.g app is running on PlayBoook or BlackBerry 10 ?

How to get device model, e.g app is running on PlayBoook or BlackBerry 10 ?

Developer
Posts: 34
Registered: ‎02-04-2012
My Device: BlackBerry PlayBook
My Carrier: T-Mobile

Re: How to get device model, e.g app is running on PlayBoook or BlackBerry 10 ?

You can use this class : http://goo.gl/GtMLP to get the device information

something like this:

String myDeviceModel = android.os.Build.MODEL;
String myDeviceBrand = android.os.Build.BRAND;
String myDeviceDevice = android.os.Build.DEVICE;

 

Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: How to get device model, e.g app is running on PlayBoook or BlackBerry 10 ?

Works for PB, but BB10 build is still not complete

ro.product.model can be accessed through android.os.Build.MODEL
ro.product.brand=BlackBerry
ro.product.name=BlackBerry
ro.product.device can be accessed through android.os.Build.DEVICE