Last Updated: February 25, 2016
· wannabegeekboy

Track the user not the Hardware. why ??

To detect an user, we might tract the hardware of the device and if we tract usering getDeviceId().

It fails for many reaons,
1. MAC address also bad.
2. ANDOROID_ID also not reliable and a scary user permission.

** Good Solution : **

The simple solution is to track a UNIQUE INSTALLATION, instead of trying to identify the actual
device. Create a unique identifier when the user opens the app for the first time and save it in a
shared preferences file.

2 Responses
Add your response

I guess this tip is useful to other mobile platforms as well. Not necessarily to Android only, but also if you want to have a cross-platform/cross-hardware UUID.


over 1 year ago ·


over 1 year ago ·