Posted By

Kingcron on 07/12/10


unique id android device

Versions (?)

Uniquely identify an android device

 / Published in: Java

The Android ID (a unique 64-bit value) as a hex string. It is null on the emulator.

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

Report this snippet  

You need to login to post a comment.