ANDROID_ID is a 64-bit number (as a hex string) that is randomly generated when the user first sets up the device and should remain constant for the lifetime of the user's device. We use this to uniquely identify the device.
You can get the value of Android id by one of the following methods.
A. Using free apps
There are multiple apps available on the app store which, when run on the target phone, display the Android device id. Device id is one such app. This app prints the Android Device Id on the screen. Convert the Android id string to small case before entering.
You can find the device id of the device through the following piece of code.
String deviceId = Settings.Secure.getString(applicationContext.getContentResolver(), Settings.Secure.ANDROID_ID); Log.e("Hansel", deviceId);
You can put this code snippet in onCreate of your first activity and read data using logcat. Convert the Android id string to small case before entering.