android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
Is what we've been using. Seems to work fine :) - Dan On Mon, Mar 15, 2010 at 11:36 PM, g...@devicedriven <ginokur...@gmail.com>wrote: > can any 1 tell me how to get an unique id from an android phone?? > whenever i try to get the unique id from the phone as a string it > always shows "android id" and no other unique hex values...how do i > get that one?? > > String id=Settings.Secure.getString(contentResolver, > Settings.Secure.ANDROID_ID); > Log.i("Android is is:",id); > > the o/p which i get is like this in my log cat.. > Android id is: android id > > how can i get that ..ahem unique hex id??? > Thankx in advance > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en