开发者

Camera.Parameters.FLASH_MODE_TORCH

开发者 https://www.devze.com 2023-03-25 13:47 出处:网络
My problem is that th开发者_如何学JAVAe TORCH MODE is disabled when the get function onPictureTaken.

My problem is that th开发者_如何学JAVAe TORCH MODE is disabled when the get function onPictureTaken. How to make a torch mode on work during a photographic survey?


I hope I got your question right. Did you try setting the camera parameters?

Camera camera = Camera.open();
Camera.Parameters parameters = camera .getParameters();
parameters.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);

. 
.
.

// Take image 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号