Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uses-feature accelerometer in the manifest

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.

like image 946
MrSnowflake Avatar asked Sep 24 '10 12:09

MrSnowflake


People also ask

What is uses feature in manifest?

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.

What is the use of accelerometer sensor?

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.

What is the use of accelerometer in Android?

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.

What is accelerometer sensor Android?

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.


2 Answers

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

like image 105
Jon Willis Avatar answered Sep 29 '22 17:09

Jon Willis


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

like image 43
Mikpa Avatar answered Sep 29 '22 15:09

Mikpa