Fetch the unique ID of Android device

To fetch the device ID of any android device, the code snippet is,

TelephonyManager telephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String android_id = telephonyManager.getDeviceId();

The screen-shot that I got from my HTC phone is,


Popular posts from this blog

AlarmManager and Notification in Android

Swipe Action and ViewFlipper in Android