[android-developers] how to know if it the emulator or device

2009-11-03 Thread Zhihong GUO
Hi all, How to know if the application is running on emulator or on a real device? I want to implement a function to detect wifi connection. If the application is running on emulator, just skip the wifi detection, while on real device, the wifi connection check should be done. how to do that?

Re: [android-developers] how to know if it the emulator or device

2009-11-03 Thread Mark Murphy
How to know if the application is running on emulator or on a real device? The ANDROID_ID secure setting should be null on the emulator and non-null on a device. -- Mark Murphy (a Commons Guy) http://commonsware.com Android App Developer Books: http://commonsware.com/books.html -- You

Re: [android-developers] how to know if it the emulator or device

2009-11-03 Thread sham shamcs
In Linux ,use *adb devices* command to see which one is running. On Tue, Nov 3, 2009 at 6:59 PM, Zhihong GUO gzhh...@gmail.com wrote: Hi all, How to know if the application is running on emulator or on a real device? I want to implement a function to detect wifi connection. If the