1

I am trying to disable android camera flash by default using intent, So I have this after googling and research

 final Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
 Parameters p = intent.getParameters();
            p.setFlashMode(Parameters.FLASH_MODE_TORCH);
            intent.stopPreview();
            intent.release();

        intent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);

My challenge is that intent does not support getParameters in order to use it to turn off the flash camera. How do I tackle this to get the camera parameters using intent to turn off the flash camera. Thanks in anticipation

akmozo
  • 9,781
  • 3
  • 26
  • 42
Blaze
  • 2,159
  • 10
  • 35
  • 77
  • Take a look into this http://stackoverflow.com/questions/33251960/how-to-turn-off-flash-light-of-camera-through-intents-in-android-programatically – Sunny Nov 26 '15 at 10:06
  • I am referring to using intent parameters to trigger off the camera – Blaze Nov 26 '15 at 10:08

0 Answers0