Currently, I am using MAC address as the identifier for an Android device.
WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiInfo wInfo = wifiManager.getConnectionInfo();
String mac = wInfo.getMacAddress();
However, I found the mac
is empty for some users' devices. I am a little confused why it could be empty.
If you could figure out the reason, that's the best!
Otherwise, could you provide an alternative for identifying an Android device?
email
It is more stable, if the use sold his/her phone and got a new one, you will still be able to identify – iTech Feb 15 '13 at 17:02