作者LCamel (LCamel)
看板AndroidDev
標題[閒聊] 如何判斷使用者是不是隻猴子?
時間Tue Aug 30 15:11:25 2011
Q: 如何判斷使用者是不是隻猴子?
A: Android framework 設想的很周到, 只要呼叫
ActivityManager.isUserAMonkey() 就好了
public static boolean isUserAMonkey () Since: API Level 8
Returns "true" if the user interface is currently being messed
with by a monkey.
http://goo.gl/0oydl
http://goo.gl/EH46D (猴子)
http://goo.gl/fp5V2 (NativeDriver 不知算不算猴子...)
LCamel
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 221.120.3.88
推 nvidia:推XD 08/30 15:59
推 zapzero:有意思 08/30 16:22
API Level 8 還新增了 Log.wtf() ...
另外 adb 也有隱藏功能: adb lolcat
lolcat:
http://goo.gl/yXX98
code:
http://goo.gl/Bfk1b
※ 編輯: LCamel 來自: 221.120.3.88 (08/30 17:20)
推 scribeTW:wtf = What a Terrible Failure XD 08/30 19:13
推 mgtsai:What a Terrible Failure 是官方公關版的 documentation 08/31 12:25