I work on the game and I need to give each user an id in order to save the data. How can I get a unique identifier for a phone that never changes and is not important information? If the path is wrong, tell me what is the right one.

  • Like any id can be changed. - pavel

1 answer 1

https://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id

 import android.provider.Settings.Secure; private String android_id = Secure.getString(getContext().getContentResolver(), Secure.ANDROID_ID); 

But this id will change if you make a hardreset. Moreover, this id is just designed for your purposes - a unique id.