Android的相机闪光灯控制 [英] Android Camera Flash Control

查看:136
本文介绍了Android的相机闪光灯控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  <一href="http://stackoverflow.com/questions/6068803/how-turn-on-only-camera-flash-light-programmatically-in-android">How在机器人只打开相机闪光灯编程?

没关系,大家好,我一直在寻找了一会儿,我似乎无法找到这个在任何地方,我想给予我的相机应用程序访问闪存灯泡或任何你想打电话给他们,如果有人知道,并希望分享这将是极大的AP preciated。或者,如果任何人都可以点我到正确的方向将是巨大的。

okay guys, I have been looking for a little while and I cant seem to find this anywhere, I would like to grant my camera application access to the flash bulbs or whatever you want to call them, If anyone knows and would like to share that would be greatly appreciated. Or if anyone can point me into the right direction that would be great.

推荐答案

我要一刺在这...

http://developer.android.com/reference/android/hardware /Camera.html

您需要授予许可使用相机的的使用&LT;采用特征&GT; 拍照功能要使用:

you need to grant permission to use the camera and use the <uses-feature> for camera features you want to use:

  <uses-permission android:name="android.permission.CAMERA" />
  <uses-feature android:name="android.hardware.camera" />
  <uses-feature android:name="android.hardware.camera.autofocus" />

支持的功能在这里 http://developer.android.com/guide/topics/manifest /uses-feature-element.html

The features supported are here http://developer.android.com/guide/topics/manifest/uses-feature-element.html

和您希望相机的是

android.hardware.camera
android.hardware.camera.autofocus
android.hardware.camera.flash

这篇关于Android的相机闪光灯控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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