Android 判断当前是否在跑monkey测试

    /**
     * Returns true if Monkey is running.
     */
    public static boolean isMonkeyRunning() {
        return ActivityManager.isUserAMonkey();
    }

 

 

posted @ 2017-06-17 16:06  行走的思想  阅读(2652)  评论(0编辑  收藏  举报