Is there an Android app to tell me how often I turn on the screen per day?
Not the "screen on" duration, but how many times I actually turn the phone on and off.
Requirements:
- Works on Android Lollipop
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It only takes a minute to sign up.
Sign up to join this communityIs there an Android app to tell me how often I turn on the screen per day?
Not the "screen on" duration, but how many times I actually turn the phone on and off.
Requirements:
Reporting the number of times the screen is activated is one of the features of the Quality Time app.
This app tracks your phone usage and provides a number of reports. It also works with IFTTT to enable you to set daily limits.
I use this app: https://play.google.com/store/apps/details?id=com.dhgg.appusagemonitor
It counts how often you check your phone per day. And it counts the time you spend on each app.
I use it for my son to show him how much time he spends/wastes on his phone.
// INITIALIZE RECEIVER
IntentFilter filter = new IntentFilter(Intent.ACTION_SCREEN_ON);
filter.addAction(Intent.ACTION_SCREEN_OFF);
BroadcastReceiver mReceiver = new ScreenReceiver();
registerReceiver(mReceiver, filter);
// YOUR CODE
This is broad cast receiver you can write your logic code in this class
public class ScreenReceiver extends BroadcastReceiver {
// THANKS JASON
public static boolean wasScreenOn = true;
@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {
// DO WHATEVER YOU NEED TO DO HERE
wasScreenOn = false;
} else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) {
// AND DO WHATEVER YOU NEED TO DO HERE
// your logic code write here
wasScreenOn = true;
}
}
}