I have this broadcast receiver declared in the Manifest:
<receiver android:name="classes.VoiceLaunchReceiver" >
<intent-filter>
<action android:name="android.intent.action.USER_PRESENT" />
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
It does its thing whenever the user unblock and turns on the screen. It works perfectly in Jellybean 4.3 and lower.
Why won't it work in Lollipop?
(I already know that the systems send that intent, what I want is to detect it with my receiver)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…