Android Question Detect activity of a user: screen on (and unlock if presents)

peacemaker

Expert
Licensed User
Longtime User
Hi, All

How about such task on modern Androids 9+ now ?
 

peacemaker

Expert
Licensed User
Longtime User
PhoneEvents
PhoneEvents ineed work, thanks, Erel.

So the way is as usual: foreground service that starts PhoneEvents to listen for
<action android:name="android.intent.action.SCREEN_ON"/> - optionally
<action android:name="android.intent.action.USER_PRESENT"/> - it must
?
 
Upvote 0
Top