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
Replace getSupportFragmentManager()
with getFragmentManager()
if you are working in api 21.
OR
If your app supports versions of Android older than 3.0, be sure you've set up your Android project with the support library as described in Setting Up a Project to Use a Library and use getSupportFragmentManager()
this time.
Use getActivity().getSupportFragmentManager()