Android Question problem setWifiApEnabled in Android 23

welu1805

Active Member
Licensed User
Longtime 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
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

welu1805

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

welu1805

Active Member
Licensed User
Longtime 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.
 
Upvote 0

welu1805

Active Member
Licensed User
Longtime 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.
 
Upvote 0
Top