正确使用的情况下为Android ActivityManager.isUserAMonkey()? [英] Proper use cases for Android ActivityManager.isUserAMonkey()?
本文介绍了正确使用的情况下为Android ActivityManager.isUserAMonkey()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在寻找在Android 2.2的推出新的API。在注视ActivityManager类我碰到下面的方法来了:
I was looking at the new APIs introduced in Android 2.2. While looking at the ActivityManager class I came across the following method:
公共静态布尔isUserAMonkey()
用于确定使该呼叫的用户是否受到teleportations。
Used to determine whether the user making this call is subject to teleportations.
返回在进行此调用用户是否是猴子。
Returns whether the user making this call is a monkey.
如何以及何时应该这样被使用?
How and when should this be used?
推荐答案
根据Android的文档
as per android docs
Returns "true" if the user interface is currently being messed with by a monkey.
要知道应用程序正在使用猴子或不测试
to know the application is testing using monkey or not
这篇关于正确使用的情况下为Android ActivityManager.isUserAMonkey()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文