开发者

Uses-feature accelerometer in the manifest

开发者 https://www.devze.com 2023-01-17 05:45 出处:网络
With the newtag of the AndroidManifest, is it also possible to define my application requires an accelerometer? It seems to me only light sensor and proximity s开发者_Go百科ensor are supported in thet

With the new tag of the AndroidManifest, is it also possible to define my application requires an accelerometer? It seems to me only light sensor and proximity s开发者_Go百科ensor are supported in the tag.

Thanks in advance.


<uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" />

Is how I've declared it in my AndroidManifest, and I've yet to encounter anyone without an accelerometer with my app installed.


According to Documentation there is a sensor feature for accelerator "android.hardware.sensor.accelerometer"

0

精彩评论

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