Closed Cornholio2108 closed 4 years ago
Check screen on/off to notice user activity
final IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON); filter.addAction(Intent.ACTION_SCREEN_OFF); mReceiver = new ScreenReceiver(); registerReceiver(mReceiver, filter);
Might not be needed anymore...
Check screen on/off to notice user activity