我正在查看 Android 2.2 中引入的新 API。在查看 ActivityManager 类时,我遇到了以下方法:
public static boolean isUserAMonkey()
Used to determine whether the user making this call is subject to teleportations.
Returns whether the user making this call is a monkey.
应该如何以及何时使用它?
最佳答案
根据安卓文档
Returns "true" if the user interface is currently being messed with by a monkey.
了解应用程序正在使用 monkey 进行测试还是不是
关于java - Android ActivityManager.isUserAMonkey() 的正确用例?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30978778/