If you’re inside a Fragment
from support library, call requestPermissions()
directly, and your Fragment’s onRequestPermissionsResult()
will be called back.
If you call ActivityCompat.requestPermissions()
, then it’s the Activity
‘s onRequestPermissionsResult()
that will be called back.