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.
private String android_id = Secure.getString(getContext()
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.