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

后端 未结 6 1646
一个人的身影
一个人的身影 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:07

    This is a special case: permision level:signature ,

    If the app targets API level 23 or higher, the app user must explicitly grant this permission to the app through a permission management screen.

    The app requests the user's approval by sending an intent with action ACTION_MANAGE_WRITE_SETTINGS.

    The app can check whether it has this authorization by calling Settings.System.canWrite().

提交回复
热议问题