/android-emulator-detector

Small utility for detecting if your app is running on emulator, or real device.

Primary LanguageJavaApache License 2.0Apache-2.0

Android EmulatorDetector

Small utility for detecting if your app is running on emulator, or real device.

Usage is as simple as calling:

EmulatorDetector.isEmulator();

You can print all parameters from android.os.Build used to determine if you are on device or emulator:

EmulatorDetector.logcat();

The same as String:

EmulatorDetector.getDeviceListing();

Installation

Download jar archive and attach it as a project library:

https://github.com/gingo/android-emulator-detector/raw/master/emulator_detector_v0.1.0.jar