Home > DeveloperSection > Forums > Is there a unique Android device ID?
ben reitman
ben reitman

Total Post:96

Points:676
Posted on    May-06-2015 12:11 AM

 Android Android  Java 
Ratings:


 2 Reply(s)
 536  View(s)
Rate this:
Do Android devices have a unique id, and if so, what is a simple way to access it via Java?


Mayank Tripathi
Mayank Tripathi

Total Post:397

Points:3117
Supported
Posted on    May-06-2015 12:59 AM

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

import android.provider.Settings.Secure;
private String android_id = Secure.getString(getContext().getContentResolver(),
                                                        Secure.ANDROID_ID); 

wushiwu08 wushiwu08
wushiwu08 wushiwu08

Total Post:3

Points:21
Posted on    May-09-2015 12:37 AM

Post is removed by the Admin.

Don't want to miss updates? Please click the below button!

Follow MindStick