Use headless Fragment for Android M run-time permissions and to check network connectivity
Ali Muzaffar
453

Thanks for the great article. How would you go about using the permission helper fragment if you were requesting a permission inside a fragment? Would you need to implement the callbacks in your activity and then call another method in the relevant fragment? I know the onAttach method takes an Activity as it’s parameter, but you could maybe set the target fragment if you wanted to implement the callbacks in the fragment.

Show your support

Clapping shows how much you appreciated Wouter de Vos’s story.