public class EmulatorDetector
extends java.lang.Object
| Constructor and Description |
|---|
EmulatorDetector() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDeviceListing()
Returns string with human-readable listing of Build.* parameters used in
isEmulator() method. |
static boolean |
isEmulator()
Detects if app is currenly running on emulator, or real device.
|
static void |
logcat()
Prints all Build.* parameters used in
isEmulator() method to logcat. |
public static boolean isEmulator()
public static java.lang.String getDeviceListing()
isEmulator() method.public static void logcat()
isEmulator() method to logcat.