Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android humidity sensor manifest

Tags:

android

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" />       
like image 837
Chrystian Avatar asked Apr 22 '26 05:04

Chrystian


1 Answers

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"

like image 88
TN888 Avatar answered Apr 24 '26 17:04

TN888



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!