Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proper use cases for Android ActivityManager.isUserAMonkey()?

Tags:

java

android

I was looking at the new APIs introduced in Android 2.2. While looking at the ActivityManager class I came across the following method:

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.

How and when should this be used?

like image 387
Confuse Avatar asked Jun 22 '15 11:06

Confuse


1 Answers

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

like image 71
No Name Avatar answered Sep 18 '22 13:09

No Name