简体   繁体   English

Android:构建Android应用程序以检查应用程序是否在模拟器或真实设备上运行

[英]Android: build android application to check app is running at emulator or real device

We need to develop android basic app which will detect the device is real or emulator and behave accordingly. 我们需要开发android基本应用,它将检测设备是真实的还是仿真器,并相应地运行。 But did not found sample code or process to detect this thing actually. 但实际上并未找到示例代码或过程来检测到此东西。 Please suggest me somebody to resolve this issue. 请建议我解决这个问题。 Thanks 谢谢

您可以检查Build.PRODUCT

"google_sdk".equals(Build.PRODUCT);

The IMEI on the emulator is "00000000000000". 仿真器上的IMEI为“ 00000000000000”。 Just check in your app if the IMEI equals the systems IMEI. 如果IMEI等于系统IMEI,只需签入您的应用即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android 应用程序不在模拟器上运行,而是在真实设备上运行 - Android App NOT Running on Emulator, but on real device Android 应用程序在模拟器上运行而不是在真实设备上运行 - Android app running on emulator not on real device Android应用未在模拟器上运行,也未在真实设备上运行 - Android app not running on emulator nor real device Android App 在模拟器中运行良好,但无法在真实设备中安装 - Android App running fine in Emulator but can't install in real device Android Instrumental Test 在模拟器上运行但不在真实设备上 - Android Instrumental Test running on Emulator but not on real device 在真实设备上运行Android应用程序 - Running Android Application on Real Device 应用程序未在真实的Android设备上运行 - Application not running on real Android device PhoneGap构建应用程序在Android设备上运行缓慢,但在模拟器中运行缓慢 - PhoneGap build app running slow on android device but not in emulator Android应用程序可以在模拟器中正常运行,但不能在真实设备中运行? - Android application works fine in emulator but not in real device? Android应用程序可以在模拟器上正常运行,但不能在真实设备上运行 - Android Application works fine on emulator but not on a real device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM