I tried using the code below, but it turned out to be SecurityException and could not be configured.
I set WRITE_SETTINGS for the manifest, but is it not possible to use it?
"Caused by: java.lang.SecurityException: com.example.androidthings.myproject was not granted this permission:android.permission.WRITE_SETTINGS."
Thank you for your cooperationandroid raspberry-pi
The security level of WRITE_SETTINGS should have changed since Android 6.0.
You should have explicit permission from the user.
It is listed in the Note of WRITE_SETTINGS in the API reference.
Understanding Permission Issues in WRITE_SETTINGS
I have a similar question below, and it seems that it has been solved.
© 2022 OneMinuteCode. All rights reserved.