I am developing an application where i need to have a toolbar at the top with bottom tabs and display Google Map in one of the tabs. I an using FragmentTabHost for the bottom Tabs and using Google Maps Api v2 for Google Maps with some custom image markers on it.I had done displaying the Google Maps on tab click but the main problem arises after this. I know for using toolbar as an Action bar i need to extend my Activity with ActionBarActivity but for using google maps i need to extend my Activity with FragmentActivity. I have tried a lot of things but to get a reference of Google Map in fragment i need to use this
SupportMapFragment supportMapFragment =
(SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.map);
googleMap = supportMapFragment.getMap();
Now if i make my Activity extends ActionBarActivity them i will be able to use toolbar in my activity but getSupportFragmentManager() will return null as my activity was not extending FragmentActivity.Hope you guys understood my problem.Any help is highly appreciated.