在android中控制手电筒的亮度 [英] Controlling the brightness of the flashlight in android

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

问题描述

我想用笔电开发一个安卓应用程序.当我使用手电筒时,亮度太强.我想降低闪光灯的亮度.我使用相机和闪光灯模式作为 TORCH.有人可以帮助降低手电筒的亮度.谢谢..

I want to develop an android application using a penlight. When I use the flashlight, brightness is too strong. I want to reduce the brightness of the flash light. I have used camera and Flash Mode as TORCH. Can someone please help to to reduce the brightness of the flashlight. Thank you..

推荐答案

遗憾的是没有可靠的解决方案,因为没有针对此类功能的官方 Android API.有一个 hacky解决方案"适用于一些有根设备.但正如我所说,没有什么可靠的.请参阅此帖子.

Unfortunately there is no reliable solution for this as there is no official Android API for this kind of functionality. There is a hacky "solution" that works on some rooted devices. But as I said, nothing reliable. See this post.

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

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