i have an app, and the scenario is that a password is required to access app for first time. Now when someone has used the password than that password can only be used on that phone again if they uninstall the app or something, just like any software installation on windows which come with unique key.
I was using device ID like
TelephonyManager manager=(TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
String deviceid=manager.getDeviceId();
But I have received few complaints from users that when they change sim or anything than it asks for a password again and old password doesn't work. I tried to test it and it turns out that on most of device the device id changes with change of sim. I didn't do much reserach before, but now I have read most of qestions and it seems like this id also changes when we factory reset the phone. Now can anyone tell me what is the best way to get the uniquely identify the android devices?
And yes, it is a duplicate of Is there a unique Android device ID? but that doesn't provide me an asnwer as Joe used device id and I have told you what is the problem with using device id, it is changing with change of SIM card.
Thank you