0
I’m developing an app that has a service of AlarmManager
who subsequently calls a Service
. It turns out that when you start the Service
I want to check if the phone is in use, IE, with the screen access and unlocked, because if it displays a notification, otherwise starts a Activity
. Is there any method or class to check this and give me a feedback?
It worked perfectly, thank you!
– Saulo Souza