I'm developing an application that has a AlarmManager
service that later calls a Service
. It happens that when I start Service
I want to check if the phone is in use, that is, with the screen accesses and unlocked, because if a notification is displayed, otherwise it starts a Activity
. Is there any method or class to check this out and give me a feedback?