This call still returns null when running on a real device: String androidId = Settings.Secure.getString (context.getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
do we need to add some sort of permission setting to read system settings? Thanks On Oct 26, 4:26 pm, Mark Wyszomierski <[email protected]> wrote: > Thanks again Mark, you're right, this is what I changed it to: > > String androidId = Settings.Secure.getString > (context.getContentResolver(), > android.provider.Settings.Secure.ANDROID_ID); > > Thanks > > On Oct 26, 4:08 pm, "Mark Murphy" <[email protected]> wrote: > > > > Thanks Mark, I set this once in a global Config class: > > > > public static final boolean IS_EMULATOR = > > > android.provider.Settings.Secure.ANDROID_ID == null; > > > That won't work. android.provider.Settings.Secure.ANDROID_ID is a key; you > > have to use Settings.Secure.getString() to get the value. > > > > For the maps, yeah I'll have to just create the MapView instance > > > through code, you can pass the key in through the constructor, I guess > > > that should work, > > > *smacks forehead* > > > Didn't think to glance at the constructor. You're right -- that should be > > fine, if you want to use Java code. > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > Android App Developer Books:http://commonsware.com/books.html > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

