Android Question problem setWifiApEnabled in Android 23

welu1805

Active Member
Licensed User
Hi all,

"Modify system settings" for an app is not available in android 23. (I can't find it).

But there is an error message in debug mode if I want to "setWifiApEnabled"

Caused by: java.lang.SecurityException: de.wedersoft.musicbook was not granted this permission: android.permission.WRITE_SETTINGS.

Has anyone on idea?

Lutz
 

welu1805

Active Member
Licensed User
I tried this but it doesn't work, because in Android 23 "Modify system settings" for an app is not available.
 

DonManfred

Expert
Licensed User
I checked the intent on my Note 8 (Android 8). It does point to the systemsetting where the user need to enable my app for write the settings.

Did you read the stackoverflow article?
 

welu1805

Active Member
Licensed User
Yes I read. With my Android 7 it works and the user can turn on write system settings. I don't have an Android 8 device. My problen NOW is that it doesn' t work with Android 6.
 

welu1805

Active Member
Licensed User
Now I know where to "Modify System Settings" manually under Marshmallow. That is different from Nougat.

In Nougat its easy: Settings, Apps, choose the app and directly Modify System Settings.

In Marshmallow: Settings, Apps and again Settings. Choose the app and a new window appears from where we can Modify System Settings.

The code from #2 works under Marshnellow too. I had a bug in my app.
 
Top