Can I change the LED intensity of an Android device?

后端 未结 5 645
盖世英雄少女心
盖世英雄少女心 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 08:11

    I have tried this in my Samsung Galaxy S3 Mini. I have not tried on other devices.

    Whenever i do this (while the led is ON):

    public void changeIntensity()
    {
        cam.stopPreview();
        cam.startPreview();
    }
    

    The LED rotates between 3 levels of intensity. It makes no sense, but it works.

提交回复
热议问题