手电筒不FLASH_MODE_TORCH [英] Flashlight without FLASH_MODE_TORCH

查看:1465
本文介绍了手电筒不FLASH_MODE_TORCH的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有开启闪光灯上的不确定时间的时候,手机心不是支持FLASH_MODE_TORCH在Camera.Parameters任何选项?

Is there any options for turning the flash light on for undefined time when the phone isnt supporting the FLASH_MODE_TORCH in Camera.Parameters ?

我知道这是可能becouse有很多工作在我的手机(三星Galaxy ACE)的应用程序,但我不找到答案。

I know it is possible becouse there are many of apps working on my phone (Samsung Galaxy ACE) but I dont find the answer yet.

我只是来:

Camera camera = Camera.open();
Camera.Parameters params = camera.getParameters();
params.setFlashMode(Camera.Parameters.FLASH_MODE_ON) //because FLASH_MODE_TORCH isnt supported
camera.setParameters(params);
camera.startPreview();
camera.autoFocus(new AutoFocusCallback(){
public void onAutoFocus(boolean success, Camera camera){
camera.autoFocus(this);
}
});

不过这正与小的延迟像1/10秒。

but this is working with little delay like 1/10 of second.

谁?

推荐答案

可能延迟来自自动对焦。你有没有尝试设置焦点到无限远?

May be delay comes from autofocus. Did you tried to set focus to infinity ?

params.setFocusMode(Camera.Parameters.FOCUS_MODE_INFINITY);

这篇关于手电筒不FLASH_MODE_TORCH的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆