Android curious methods

Working with Android library I found some curious methods to make it funny.

class Log

public static int wtf (String tag, String msg)

What a Terrible Failure: Report a condition that should never happen. The error will always be logged at level ASSERT with the call stack. Depending on system configuration, a report may be added to the DropBoxManager and/or the process may be terminated immediately with an error dialog.

class ActivityManager

public static boolean isUserAMonkey()

Returns “true” if the user interface is currently being messed with by a monkey.

Share Button

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload the CAPTCHA.