0

In my android app , I have a menu for backlight options ,and I want that when the user selects one like " during this operation " to have the backlight on during that operation. Could I be be shown a way of accomplishing this . My problem is the that I don't know how to manipulate the backlight and how to properly arrange this in the code.

Thanks

klaus johan
  • 4,370
  • 10
  • 39
  • 56

2 Answers2

1

Check android.os.PowerManager

You probably should also have WAKE_LOCK permission in manifest

skyman
  • 2,422
  • 17
  • 16
0

If you just want to keep the screen awake while on a particular activity, please see Force Screen On

Community
  • 1
  • 1
Steve Pomeroy
  • 10,071
  • 6
  • 34
  • 37