Skip to content

dbaelz/OnOff-Tracker

Repository files navigation

On-Off Tracker

The On-Off Tracker is an application to measure how often the screen has been switched on and off. In addition, it also tracks how often the device is unlocked.

Features:

  • Today, last seven days and overall numbers for on-off switching of the screen and unlocking.
  • Charts to visualize the data.
  • Background service that runs automatically after the device is booted.

Please note: After installation the application must be started once to activate the background service without a device restart.

Build

The projects can be build with the integrated Gradle wrapper. It's also available in the Play Store.

Signing

To sign your Android app with gradle use the property OnOff-Tracker.signing and external config files for the keystore information. Tim Roes wrote a very informative blog post about handling signing configs.

Note that property OnOff-Tracker.signing has to point to the folder of your keystore and not to the filename of the keystore file!

android {
  signingConfigs {
    release {
      storeFile file(project.property("OnOff-Tracker.signing") + "/release.keystore")
      storePassword "KEYSTORE_PASSWORD"
      keyAlias "KEY_ALIAS_RELEASE"
      keyPassword "KEY_PASSWORD"
    }

    debug {
      storeFile file(project.property("OnOff-Tracker.signing") + "/debug.keystore")
      storePassword "android"
      keyAlias "androiddebugkey"
      keyPassword "android"
    }
  }
 
  buildTypes {
    release {
      signingConfig signingConfigs.release
    }

	debug {
      signingConfig signingConfigs.debug
    }
  }
}

License

OnOff-Tracker is licensed under the Apache 2 License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages