1

In Android Nougat you can set the torch brightness yet I cannot find any examples of code that can do this. I've searched git and the Android developer API. Does anybody know how to change the torch brightness programmatically?

fonfonx
  • 1,475
  • 21
  • 30
Forth Temple
  • 94
  • 2
  • 5
  • Have u tried this https://stackoverflow.com/questions/18312609/change-the-system-brightness-programmatically – Sunisha Guptan Jun 26 '17 at 11:56
  • That link is for screen brightness not torch brightness. – Forth Temple Jun 26 '17 at 12:13
  • I'm not quite sure if this is even possible, as I've never seen anything like this, when we're talking about the flash(light) on the back on the phone. Nor can I find anything about it searching on Google. Maybe something like that can be achieved by modulating the flashlight (turning it on/off again very rapidly), although that would probably very performance intensive if it's even possible. – Tim Visée Jun 26 '17 at 12:22
  • 1
    There's no API for this. – 323go Jun 26 '17 at 12:26
  • I thought adjusting the torch brightness was part of Nougat so assumed it would be in the API. Maybe adjusting torch brightness is just for Nougat on Samsung phones. – Forth Temple Jun 26 '17 at 12:38

0 Answers0