Chrystian
Chrystian

Reputation: 1047

Android humidity sensor manifest

I want to use the uses-feature in android to limit my app to only be visible on the play store to devices with a humidity sensor, but I cant find on developer.android.com what the delimited would be for that sensor.

I know that for accelerometer is like this:

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

Upvotes: 3

Views: 467

Answers (1)

TN888
TN888

Reputation: 7739

There is no way to do that using <uses-feature>

Read here about <uses-feature>.

I know alternative solution : when user turn on application, you're getting a list of sensors and if there is not hydrometr, you're showing toast :

"You cannot use that application, because your device hasn't got required sensor"

Upvotes: 3

Related Questions