Is there a way to determine if a user is actively present on phone (not just screen on).
I cannot depend on catching events. These only fire off at points in time within a BroadcastReceiver:
intent.getAction().equals(Intent.ACTION_USER_PRESENT)
intent.getAction().equals(Intent.ACTION_SCREEN_ON)
I need a simple way to perform an active check in that moment. A service is firing off, and I do not want it to fire off while the phone is active (screen on).