How to get unique ID from Android Device
How to get unique ID from Android Device?
To save data into something? Send server to verify user?
Some people
At first look, Build.ID is first choice but, following is best solution for it!
private String uid = Secure.getString(getContentResolver(), Secure.ANDROID_ID);
getContentResolver is Context method. You need call from Context or Activity.
Reference
stackoverflow