Is there a unique Android device ID? Do Android devices have a unique ID, and if so, what is a simple way to access it using Java? Solution : Settings.Secure#ANDROID_ID returns the Android ID as an unique for each user 64-bit hex string. import android.provider.Settings.Secure; private String android_id = Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID); Update: 06/05/2015 When reviewing this as a possible solution, please consider Joe's answer below instead as an alternative. http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id
undefined
Proper use cases for Android UserManager.isUserAGoat()? I was looking at the new APIs introduced in Android 4.2. While looking at the UserManager class I came across the following method: public boolean isUserAGoat() Used to determine whether the user making this call is subject to teleportations. Returns whether the user making this call is a goat. How and when should this be used? Answer: From their source, the method used to return false until it was changed in API 21. /** * Used to determine whether