Can I change the LED intensity of an Android device?

后端 未结 5 648
盖世英雄少女心
盖世英雄少女心 2020-11-28 07:27

Is there a way to set the LED intensity that I desire? I know that to turn on the LED I use:

     p.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
     my         


        
5条回答
  •  悲&欢浪女
    2020-11-28 07:53

    Short answer is: NO.
    Longer answer - maybe on some devices using undocumenterd calls / parameters. Supported flash modes, and their meanings (and behaviours) differ from device to device.

    Your best option is to query supported flash modes, and hope they work as intented.

提交回复
热议问题