Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

Repository files navigation

Android Screen On

Use this library to keep the screen on and prevent the phone from going into sleep while the app is in the foreground. This is useful for app development. The library is self bootstrapping, it requires no extra code in your app (besides the gradle dependency).

Instalation steps (using jitpack)

  • Add the JitPack repository to your build file, using your root build.gradle at the end of repositories:
allprojects {
  repositories {
    /* ... */
    maven { url 'https://jitpack.io' }
  }
}
  • Add the dependency
dependencies {
  debugImplementation 'com.github.adi1133:screen-on:1.0'
}

For more information regarding the instalation check out this link

About

Keep the screen on while developing Android apps

Topics

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages