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:
For Fragment use getActivity().checkSelfPermission
Fragment
getActivity().checkSelfPermission
For Activity use this..checkSelfPermission or simply checkSelfPermission
Activity
this..checkSelfPermission
checkSelfPermission