Search code examples
javaandroidpermissionsandroid-manifest

What is the use of android permission Wake Lock?


When and why to use the android permission <uses-permission android:name="android.permission.WAKE_LOCK" />. Please provide sample code regarding wake lock.


Solution

  • You can use a wakelock for keeping the screen turned on - you can see an example in this code.

    If you want more information, you have to specify your question.