proximity sensor permission in android app

27 Views Asked by At

I am trying to design an app in Android Studio that uses the proximity sensor. I added the following code in the manifest.xml and it still doesn't ask for the permission when I launch the app:

uses-feature 
android:name="android.hardware.sensor.proximity" 
android:required="true"

Does anyone know why this happens? Is the proximity sensor always activated and therefore doesn't require a permission? Thank you!!

0

There are 0 best solutions below