Nickname wrote: > Can anybody point me to the class and function that I can use to > determine whether my app is running on G1 (release mode) or on > Emulator (debug mode)?
I know of a couple of ways that work, though I can't say for certain if they will *always* work: -- Some of the values in android.os.Build (e.g., MODEL) will be null on the emulator and non-null on the G1. -- android.provider.Settings.System.ANDROID_ID is null on the emulator and a unique non-null value on the G1 -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 1.4 Published! --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---