Siddiqui
Siddiqui

Reputation: 7840

Screen Retain unlock when our application is running

Is it possible to make continuously unlocked the screen when our application is running.

Upvotes: 1

Views: 94

Answers (2)

Michael
Michael

Reputation: 54715

You can use WakeLock. But it's not a good solution because you have to acquire and release it manually. And AFAIK it requires a permission. The better solution is to use android:keepScreenOn="true" for a view which requires screen to be on.

Upvotes: 5

Jovan
Jovan

Reputation: 1741

I think that you can do that in xml with this option: android:keepScreenOn="true"...

Upvotes: 2

Related Questions