是什么FLASH_MODE_TORCH与FLASH_MODE_ON之间的差 [英] what is the difference between FLASH_MODE_TORCH AND FLASH_MODE_ON

查看:1356
本文介绍了是什么FLASH_MODE_TORCH与FLASH_MODE_ON之间的差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用LED相机我的应用程序反过来 FLASH_MODE_TORCH ,但现在有些人说 FLASH_MODE_TORCH 将无法在某些工作三星设备正常。

My app turn on camera LED using FLASH_MODE_TORCH, but now some people say that FLASH_MODE_TORCH will not work on some Samsung devices correctly.

所以,我应该用 FLASH_MODE_ON 所有设备的工作吗?(尤其是三星设备)

So should I use FLASH_MODE_ON for all devices to work?(especially for Samsung devices)

推荐答案

有是确保闪光灯工作的每个设备上没有任何单一的方法。你必须补充大量的code的是特定制造商和设备。

There is no single way to make sure the flash works on every device. You have to add a lot of code that is specific of the manufacturer and the device.

Dwhanik的答案是我会如何处理你所谈到的具体问题。检查 FLASH_MODE_TORCH ,然后再尝试 FLASH_MODE_ON 。但是,这并不意味着你会得到每个设备上的闪光。

Dwhanik's answer is how I would handle the specific problem you are talking about. Check for FLASH_MODE_TORCH first and then try FLASH_MODE_ON. But this does not mean that you will get a flash on every device.

这篇关于是什么FLASH_MODE_TORCH与FLASH_MODE_ON之间的差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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