Cannot resolve method checkSelfPermission

后端 未结 7 987
南方客
南方客 2021-02-19 14:58

I\'m trying to make my app ready for Android 6 and now I\'m stuck to the point where you need to request and check permissions.

I tried the following from the docs:

7条回答
  •  Happy的楠姐
    2021-02-19 15:46

    For Fragment use getActivity().checkSelfPermission

    For Activity use this..checkSelfPermission or simply checkSelfPermission

提交回复
热议问题