Hi Mark,

What does rooted mean? Things that might be messing it up:

 1) I don't have a SIM card in the device (just using wifi)
 2) I am using getAppplicationContext() for the context parameter in
that call

Other than that - everything else is 'normal'.. I think?

Thanks

On Nov 15, 7:47 pm, Mark Murphy <[email protected]> wrote:
> Mark Wyszomierski wrote:
> > Following other threads - I'm trying to get a unique device ID from
> > the device. I tried this:
>
> >   String ID = Settings.Secure.getString(context.getContentResolver(),
> > android.provider.Settings.Secure.ANDROID_ID);
>
> > but this returns null when running on my G1. Is it supposed to be
> > returning a valid number, or am I accessing it wrong? I don't want to
> > use the telephony device ID because that requires more permissions.
>
> No, that should not return null AFAIK, except on the emulator.
>
> Is your device rooted or anything?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to *Advanced* Android Development_
> Version 1.2 Available!

-- 
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

Reply via email to