Android Question Get unique address from Android device

darabon

Active Member
Hi,
I need to have a unique address or id from my device and save that in the database.
That can be Buildnumber or IMEI or Mac address or anything that is unique for the related device.
It's important that be unique and not fake.
I know that I cannot read the IMEI and Mac addresses.
What is your suggestion?

Thanks
 
This question (finding a unique Android device identifier) has been asked many times before. Thre are many suggestions - find them in "Search" - but none of them are perfect.

[Edit : But see this more recent thread which updates this position.]
 
Last edited:
Upvote 0
This question (finding a unique Android device identifier) has been asked many times before. Thre are many suggestions - find them in "Search" - but none of them are perfect.
I know for example android_id
But that must be unique even after resetting the device
For example, MAC_ADDRESS is unique and always in Android
 
Upvote 0
 
Upvote 0
It changes and that is bad for me.
Because in my project, the activation is done with tablet in client home and client haven't to enter device id or the device id shouldn't changes
 
Upvote 0
I know for example android_id
But that must be unique even after resetting the device
For example, MAC_ADDRESS is unique and always in Android
Yes, but as this thread explains, neither android_id or MAC address can be relied upon for all devices. That is what I meant when I said there does not seem to be a perfect answer. I think someone somewhere said that the only reliable option was to set up a user registration and password database, but obviously that is a lot of extra work.

[Edit : But see update in post #2]
 
Last edited:
Upvote 0
Yes, but as this thread explains, neither android_id or MAC address can be relied upon for all devices. That is what I meant when I said there does not seem to be a perfect answer. I think someone somewhere said that the only reliable option was to set up a user registration and password database, but obviously that is a lot of extra work.
I'm stupid OMG
 
Upvote 0
Back
Top