Uniquely identify an android device


/ Published in: Java
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. import android.provider.Settings.Secure;
  2.  
  3. private String android_id = Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.