DOES THERE EXIST ANY UNIQUE ANDROID DEVICE ID?

Samuel Fernandes

Total Post:159

Points:1117
Posted by  Samuel Fernandes
 773  View(s)
Ratings:
Rate this:
Do Android devices have a unique id, and if so, what is a simple way to access it via Java?
  1. Mayank Tripathi

    Post:397

    Points:3117
    Re: Does there exist any unique Android device ID?

    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); 

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!