-1

I'm using a fragment for map which I'll use in main activity. But when I pass getContext() as argument, this is not working and showing me the following error. Please help to get rid of this.enter image description here

1 Answers1

1

You must use getActivity() instead of getContext().

AlexTa
  • 5,133
  • 3
  • 29
  • 46