16

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 Answers 2

40

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

1
  • Seems like this got added recently, or I need a glasses upgrade. Thanks! Nov 23, 2010 at 19:47
2

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

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.