I wanna run my service only when device is not locked.How exactly it has to work:
User runs the application.
Then service is run
- Stop working when device is locked.
- When user unlock device service runs again.
I'm in need of help with first 3 points. Because fourth point can be done with ACTION_USER_PRESENT
. Help me please.