Apr 4, 2011

Get ANDROID_ID

ANDROID_ID is 64-bit number (as a hex string) that is randomly generated on the device's first boot and should remain constant for the lifetime of the device. (The value may change if a factory reset is performed on the device.)

 String Id = Settings.Secure.getString(getContentResolver(), Settings.Secure.ANDROID_ID);


Related Post:
- Get phone type using android.telephony.TelephonyManager



1 comment:

  1. It should request user salt thereby giving user ability to revoke tracking by changing salt

    ReplyDelete

Infolinks In Text Ads