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

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.

Like what you read? Give Wouter de Vos a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.