Basically I'm reporting a score via a webservice, instead of having a login password I was just wanting to use a unqiue phone id to track the user.
Is ANDRIOD_ID just an accesible global type variable? Thanks for the help. Mark On Feb 14, 10:50 am, Mark Murphy <[email protected]> wrote: > Mark Hansen wrote: > > Is there some method in which i can identify a phone, a serial number > > or something similar that's accessible by code? > > That depends on how you define "identify" and "phone". ;-) > > You can get at the IMEI number via android.telephony.TelephonyManager's > getDeviceId() method...but I think that's tied to the SIM, and I don't > know what will occur if/when Android is ported to non-GSM devices. This > one also requires a security permission, IIRC. > > You can get ANDROID_ID from android.provider.Settings.System, which is > "a unique 64-bit value as a hex string"...except on the emulator, where > it is null. > > -- > Mark Murphy (a Commons Guy)http://commonsware.com > > Android Training on the Ranch! -- Mar 16-20, > 2009http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

