Here is the Simple Statement to find Android Device ID which return a String.
String udid = Secure.getString(getContentResolver(), Secure.ANDROID_ID)
Please Note :
Source : Android Documentation
String udid = Secure.getString(getContentResolver(), Secure.ANDROID_ID)
Please Note :
ANDROID_ID is a 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.)
Source : Android Documentation
No comments:
Post a Comment