Saturday, June 1, 2019

uniqueidentifier - Is there a unique Android device ID?



Do Android devices have a unique ID, and if so, what is a simple way to access it using Java?


Answer



Settings.Secure#ANDROID_ID returns the Android ID as an unique for each user 64-bit hex string.



import android.provider.Settings.Secure;


private String android_id = Secure.getString(getContext().getContentResolver(),
Secure.ANDROID_ID);

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...