Android 6.0 Permission Denial: requires permission android.permission.WRITE_SETTINGS

后端 未结 6 1631
一个人的身影
一个人的身影 2020-12-05 10:49

As you can see from my manifest below, I\'ve added the permission,What am I missing?



        
6条回答
  •  情话喂你
    2020-12-05 11:06

    It turns out you need to use a different mechanism to be granted WRITE_SETTINGS in Android 6. requestPermissions doesn't work, but CommonsGuy has provided a workaround here: https://stackoverflow.com/a/32083622/238753

提交回复
热议问题