Android Utililty Methods Emulator Check

List of utility methods to do Emulator Check

Description

The list of methods to do Emulator Check are organized into topic(s).

Method

voidsetIsEmulator()
Sets the status whether the test is run on an emulator or not.
isEmulator = android.os.Build.MODEL.equals("google_sdk");
booleanisEmulator()
is Emulator
return ("google_sdk".equals(Build.PRODUCT) || "sdk"
        .equals(Build.PRODUCT));
booleanisEmulator()
is Emulator
String product = Build.PRODUCT;
return (product != null && (product.equals("sdk")
        || product.contains("_sdk") || product.contains("sdk_")));