Wednesday, May 26, 2010

[android-developers] Detect Emulator on Android 2.2

Since Android 2.2, we can read the ANDROID_ID from the emulator which
is always 9774D56D682E549C
It breaks a lot of existing code that used to test if the ANDROID_ID
was null to check whether the device was an emulator or not.

I need a future proof way to test a device is an emulator.

--
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
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment