Reputation: 822
Android document says that android.provider.Settings.Secure:
A 64-bit number (as a hex string) that is randomly generated when the user first sets up the device and should remain constant for the lifetime of the user's device.
However, when I call this method:
String hardware_id = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID);
it returns a 16 digit number. Shouldn't it return a 64 digit hex?
Upvotes: 0
Views: 95
Reputation: 1006819
The documentation states that it returns a 64-bit hex value, not a 64 digit hex value. With a hex digit representing four bits (24 = 16), a 64-bit hex value is 16 hex characters.
Upvotes: 2