Home > Mobile >  For help, and can't find the method
For help, and can't find the method

Time:05-09

, save the children of the project, the project is my multiple projects, a comprehensive modification of the multiple folders the following Java files, said can't find method, what should I do ah

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 clearly

CodePudding user response:

FragRead. This change to getActivity
  • Related