但是在代码中,注册监听倒是可以的,android.intent.action.SCREEN_OFF也是一样
不能的意思是,其实写了receiver在解屏或者锁屏的时候都截获不到任何的消息
搜到两篇老外的介绍:
1 http://groups.google.com/group/android-developers/browse_frm/thread/81d84efa68578924?scoring=d&q=screen_on&
2 http://stackoverflow.com/questions/2575242/android-intent-action-screen-on-doesnt-work-as-a-receiver-intent-filter