Reputation: 7840
Is it possible to make continuously unlocked the screen when our application is running.
Upvotes: 1
Views: 94
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
Reputation: 1741
I think that you can do that in xml with this option: android:keepScreenOn="true"...
Upvotes: 2