I have to fragments one Fragment contains Map and other one to show details of pin when user clicks on map.When user clicks on back button from Details Fragment i am overriding the back button to show map again.
fragmentManager.beginTransaction().replace(R.id.content_frame, mapfragment).commit();
When i am doing like this the map is reloading.I tried with addToBackStack also but no luck.Can any one suggest how to resolve it..
Check this out. You need to save the state of the fragment.