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

Open Gallery and get the selected image in appplication

Swipe Action and ViewFlipper in Android