On Mon, Sep 26, 2011 at 5:58 PM, Wall-E <[email protected]> wrote: > Am I guaranteed to get the IMEI/MEID by calling getDeviceId() from the > telephony manager?
Not really: http://android-developers.blogspot.com/2011/03/identifying-app-installations.html > I ask because you don't always have access to the device phone > number. I want to be able to have an ID that is specific to the > hardware and I'm not sure if the ANDROID_ID is constant or if it will > change if the user upgrades the version of Android. To quote the blog posted linked to above: "There are many good reasons for avoiding the attempt to identify a particular device. For those who want to try, the best approach is probably the use of ANDROID_ID on anything reasonably modern, with some fallback heuristics for legacy devices." -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

