Android changing brightness using sensor
问题 I have an app through which I can change the brightness of the device manually. I want to do that using the sensor. What code do I have to add? Also what changes I have to made in the manifest? Here it is my code: package com.example.brightnessdemo; import android.os.Bundle; import android.provider.Settings; import android.provider.Settings.SettingNotFoundException; import android.provider.Settings.System; import android.app.Activity; import android.content.ContentResolver; import android