I have an application with three tabs.
Each tab has its own layout .xml file. The main.xml has its own map fragment. It\'s the one that shows up when the application
I would recommend replace() rather than attach()/detach() in your tab handling.
replace()
attach()
detach()
Or, switch to ViewPager. Here is a sample project showing a ViewPager, with tabs, hosting 10 maps.
ViewPager