Obsolete
Status Update
Comments
to...@malcolmson.ca <to...@malcolmson.ca> #2
I test this myself and found the same thing as you. I posted about it on SO here:
http://stackoverflow.com/a/13465373/150016
I actually thought it made sense that they create a new ANDROID_ID for each user, so I assumed that that is what they intended, but I hadn't noticed that the docs say the opposite.
At this point, they better just fix the docs and not change Android.
I actually thought it made sense that they create a new ANDROID_ID for each user, so I assumed that that is what they intended, but I hadn't noticed that the docs say the opposite.
At this point, they better just fix the docs and not change Android.
do...@googlemail.com <do...@googlemail.com> #3
It seems there is a contradiction in the docs anyhow...
http://developer.android.com/about/versions/android-4.2.html
states
Beware that if your app requests one of the hardware device identifiers (such as the WiFi MAC address, the SERIAL number, or the ANDROID_ID number), they will provide the same value for each user because these identifiers are tied to the hardware and not the user. Not to mention the other problems these identifiers introduce as discussed in the Identifying App Installations blog post.
while
http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID
states
Note: When a device has multiple users (available on certain devices running Android 4.2 or higher), each user appears as a completely separate device, so the ANDROID_ID value is unique to each user.
states
Beware that if your app requests one of the hardware device identifiers (such as the WiFi MAC address, the SERIAL number, or the ANDROID_ID number), they will provide the same value for each user because these identifiers are tied to the hardware and not the user. Not to mention the other problems these identifiers introduce as discussed in the Identifying App Installations blog post.
while
states
Note: When a device has multiple users (available on certain devices running Android 4.2 or higher), each user appears as a completely separate device, so the ANDROID_ID value is unique to each user.
en...@google.com <en...@google.com>
jo...@gmail.com <jo...@gmail.com> #4
Im the only user on my device why do i have a unique id? Can you explain thus to me
Description
"If your app requests one of the hardware device identifiers (such as the WiFi MAC address, the SERIAL number, or the ANDROID_ID number), they will provide the same value for each user because these identifiers are tied to the hardware and not the user."
However, that is not the case on the Nexus 7 (with Android 4.2.1 build JOP40D), as every user returns a different value when querying for ANDROID_ID.
Is this a bug in the implementation, or is the documentation incorrect?