If you are looking get unique Android device ID? Use Settings.Secure#ANDROID_ID
returns the Android ID as an unique for each user 64-bit hex string.
1 2 3 4 5 | import android.provider.Settings.Secure; private String android_id = Secure.getString(getContext() .getContentResolver(), Secure.ANDROID_ID); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.