No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
gradle/wrapper
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

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.