welu1805 Active Member Licensed User Longtime User Dec 6, 2018 #1 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
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 Dec 6, 2018 #2 Again here (already posted the answer in your other thread) https://stackoverflow.com/questions/32083410/cant-get-write-settings-permission for the 2nd part of the opt-in you can use this code: B4X: dim in as intent in.initialize( "android.settings.action.MANAGE_WRITE_SETTINGS","package:"&application.packagename) startactivity(in) Upvote 0
Again here (already posted the answer in your other thread) https://stackoverflow.com/questions/32083410/cant-get-write-settings-permission for the 2nd part of the opt-in you can use this code: B4X: dim in as intent in.initialize( "android.settings.action.MANAGE_WRITE_SETTINGS","package:"&application.packagename) startactivity(in)
welu1805 Active Member Licensed User Longtime User Dec 6, 2018 #3 I tried this but it doesn't work, because in Android 23 "Modify system settings" for an app is not available. Upvote 0
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 Longtime User Dec 6, 2018 #4 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? Upvote 0
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 Longtime User Dec 6, 2018 #5 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
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 Longtime User Dec 7, 2018 #6 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
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.