Run Android app on only on device not emulator
问题 How to run android app only on device . when app start check it launch on device or emulator. If it is emulator wanna app to stop. how can i do this... 回答1: In the onCreate() method of your launch activity, you can check whether the device is running on an emulator and, if it is, just call finish() . To check whether you're running on an emulator, you can use something like the following code (taken from this answer): public static boolean isEmulator() { return Build.FINGERPRINT.startsWith(