CodePudding user response:
Toast to pass in a context, the Fragment is no context, so you want to the Activity, it is ok to call fragments getActivity,CodePudding user response:
Encounter this kind of question, you point, see what this method requires parameters, you send what parameters, problem clearlyCodePudding user response:
FragRead. This change to getActivity