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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With