get the device id (IMEI)  [ 748 views ]

Goal: get the unique device identifier

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

This is the IMEI/MEID number. We need permission to read this information.

  <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
#sidebar a { color:#fff; } #sidebar ul ul li { color: #DEF585; } #sidebar h2 { color: #fff; } #sidebar ul p, #sidebar ul select { color: #BEDDBE; } #backfly { background: url(images/golfBallWallPaper.jpg) left bottom fixed repeat-x #65a51d; }