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

