Is there a unique Android device ID?

Total Post:96

Points:676
 1110  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. Post:397

    Points:3117
    Re: Is there a 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); 

  1. Post:3

    Points:21
    Re: Is there a unique Android device ID?

    Post is removed by the Admin.

Answer