First of all, thank you for your help.
Here is my problem.
import android.os.BacklightManager; //My service manager name ... BacklightManager bm = (BacklightManager) getSystemService(BACKLIGHT_SERVICE); ... if(!bm.isBacklightOn()) { //Turn it on. } else { //Other Things... }
My problem occurs because Android Studio will not build the application due to not knowing what the BacklightManager is. How can I build this application to test my code? (import something into Android Manager, force a build ignoring errors, etc.)
It looks like the solution is to build a custom SDK within the AOSP build environment. And then import that into Android Studio
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.