Keep in mind that this is NULL on the emulator.
On Mon, Mar 15, 2010 at 7:36 PM, g...@devicedriven <[email protected]>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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
Writing code is one of few things
that teaches me I don't know everything.
Make Call Girl Manager great!
Join the forums.
http://www.fuligin.com/forums
--
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