I found the message Cannot resolve method \'getSupportFragmentManager ( )\' I want to fragment as activity. because I want to use Maps on the tabs swipe.
pub
For my case, I made sure that Fragment class is imported from
android.support.v4.app.Fragment
Not from
android.app.Fragment
Then I have used
getActivity().getSupportFragmentManager();
And now its working. If I use activity instance which I got in onAttach() is not working also.