0
I have the following problem in my application. At first boot I capture androidID using the following method:
Settings.Secure.getString(context.getContentResolver(), Settings.Secure.ANDROID_ID)
This code is being used to validate on a web service if it is the first installation of the application on a given device.
But when performing an android system update, or giving a Recovery in it this code is generated again, the Google documentation says that it is updated whenever the first system boot is done.
I need a code that’s unique and can’t be the IMEI because it doesn’t exist on devices that don’t have a chip.
Any suggestions?
I can not fully visualize your problem, but could not be a registration where the user inform the email? This email is unique in your registration.
– Reginaldo Rigo
Opa, I can not use the email because the device can be used by several users, and so catch with user and password. I need an ID because the system is charged for copies, at the time of the first registration I take a series of data from the device and send to the webservice and until then I thought that Androidid was unique and immutable, but today I found that it changes, with this the device is re-registered and decreases the number of copies of the user.
– TFreed
Have you looked here? Lots of information. http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id
– Reginaldo Rigo
I already had a look and I will look again. Thanks.
– TFreed
Cannot be ID registered by GCM / FCM?
– Marco Giovanni
I decided using NETWORK CARD MACADRESS. Thank you all.
– TFreed