Stop screen from dimming by enforcing wake lock in Android

1
2
import android.app.Activity;
import android.content.Context;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Snippet that shows how to stop screen from dimming by enforcing wake lock.

#android #screen #dimming #wakelock

#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.