http://www.sendspace.com/file/l2325p
剛寫好的, 因為只能使用於milestone上, 所以暫不放上market!
沒有其他一鍵關屏的問題, 開啟app後, 500ms 後就會關螢幕,
關後可以立即按鍵開機!
*** 更新: ***
減少了關螢幕的廷遲 (現為200ms).
增加了Power Off的圖標.
***
I/ActivityManager( 1301): Start proc com.roy.phonesleep for activity com.roy.pho
nesleep/.PhoneSleepActivity: pid=13628 uid=10081 gids={}
I/dalvikvm(13628): Debugger thread not active, ignoring DDM send (t=0x41504e4d l
=38)
I/dalvikvm(13628): Debugger thread not active, ignoring DDM send (t=0x41504e4d l
=40)
D/WindowManager( 1301): I'm tired mEndcallBehavior=0x2
W/dalvikvm(13628): threadid=13: thread exiting with uncaught exception (group=0x
4001b170)
E/AndroidRuntime(13628): Uncaught handler: thread PhoneSleepThread exiting due t
o uncaught exception
E/AndroidRuntime(13628): java.lang.RuntimeException: Can't create handler inside
thread that has not called Looper.prepare()
E/AndroidRuntime(13628): at android.os.Handler.<init>(Handler.java:121)
E/AndroidRuntime(13628): at android.widget.Toast.<init>(Toast.java:68)
E/AndroidRuntime(13628): at android.widget.Toast.makeText(Toast.java:231)
E/AndroidRuntime(13628): at com.roy.phonesleep.PhoneSleepActivity$1.run(P
honeSleepActivity.java:38)
I/Process ( 1301): Sending signal. PID: 13628 SIG: 3
I/dalvikvm(13628): threadid=7: reacting to signal 3
關閉廣告




























































































