阻止 Android 市场中需要 LED 或相机闪光灯的应用程序

发布于 2024-08-25 02:24:50 字数 137 浏览 0 评论 0原文

是否有一个特定的标志可以用来阻止应用程序 出现在要求手机有摄像头的市场上 闪光灯/LED?典型的应用程序使手机就像一个 黑暗中的火炬光。我看到一个标签可以阻止应用程序需要 自动对焦相机出现在市场上。

只是想看看是否有类似的相机 闪光。

Is there a particular flag that we can use to prevent apps
showing up in marketplace which require the phone to have a camera
flash /LED? Typical apps are ones which make the phone act like a
torchlight in dark. I have seen a tag which prevents apps requiring
autofocus in a camera from appearing in the marketplace.

Just looking to find out if there is something similar for camera
flash.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

明明#如月 2024-09-01 02:24:50

不确定你是否是问这个问题的人,但这最近出现在 [android-developers] 上。 Dianne Hackborn 指出,有一个 元素用于此目的:android.hardware.camera.flash

Not sure if you were the one who asked, but this popped up on [android-developers] recently. Dianne Hackborn pointed out that there is a <uses-feature> element for this: android.hardware.camera.flash.

月隐月明月朦胧 2024-09-01 02:24:50

在清单文件中,您需要添加:

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

根据我的阅读,您需要在闪光之前指定相机和自动对焦。

只是想知道,您是否有运气在未root的手机上打开LED灯?

In the manifest file you would need to add:

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

From what I have read you need to specify camera and autofocus before flash.

Just wondering, have you had any luck turning on the led on an un-rooted phone?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文