如题。

解决方案 »

  1.   

    public static final String ACTION_USER_PRESENTSince: API Level 3
    Broadcast Action: Sent when the user is present after device wakes up (e.g when the keyguard is gone).This is a protected intent that can only be sent by the system.Constant Value: "android.intent.action.USER_PRESENT"
      

  2.   

    也就是说不能通过xml静态方法注册了?
      

  3.   

    当然不是,这个是说这个action只能有系统发出,是在用户唤醒机器的时候才会发出这种action
      

  4.   

    屏幕解锁的时候会触发这个广播。会受好多条件的制约。
    比如有些第三方桌面不会真正的锁屏,360,LBE等安全软件对广播的拦截等等