Uses-feature accelerometer in the manifest

2019-04-19 04:13发布

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 sensor are supported in the tag.

Thanks in advance.

2条回答
We Are One
2楼-- · 2019-04-19 04:43

<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.

查看更多
做自己的国王
3楼-- · 2019-04-19 04:59

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

查看更多
登录 后发表回答