Keep the screen ON
we can use keepScreenOn property inside the layout:
android:keepScreenOn="true"
Or call setKeepScreenOn method from your View Class:
setKeepScreenOn(true)
Written by José Manuel Pereira (JMPergar)
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Related Tags
#android
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#