How to obtain the serial number of a BlackBerry PlayBook through your Android app

by BlackBerry Development Advisor on ‎01-20-2012 04:06 PM (7,699 Views)

If your application requires some sort of device recognition (for registration, subscription, logging) the serial number, which is device specific, is exposed through the Telephony class. At this time, the serial number can be obtained through the following call:


TelephonyManager tm = (TelephonyManager).getSystemService(Context.TELEPHONY_SERVICE);
String id = tm.getDeviceId();