开发者

Prevent application requiring LED or camera flash from Android marketplace

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.


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.


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜