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.
Declares a single hardware or software feature that is used by the application. The purpose of a <uses-feature> declaration is to inform any external entity of the set of hardware and software features on which your application depends.
An accelerometer sensor is a tool that measures the acceleration of any body or object in its instantaneous rest frame. It is not a coordinate acceleration. Accelerometer sensors are used in many ways, such as in many electronic devices, smartphones, and wearable devices, etc.
In general, the accelerometer is a good sensor to use if you are monitoring device motion. Almost every Android-powered handset and tablet has an accelerometer, and it uses about 10 times less power than the other motion sensors.
An accelerometer sensor reports the acceleration of the device along the three sensor axes. The measured acceleration includes both the physical acceleration (change of velocity) and the gravity. The measurement is reported in the x, y, and z fields of sensors_event_t. acceleration.
<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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With