Reputation: 1047
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
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