i\'m trying to use google maps v2 within viewpager (fragmentpager) in a fragment. It works fine if i swipe to fourth fragment (view pager), but if i go back to the first fragmen
This worked for me.
@Override public void onDestroyView() { // TODO Auto-generated method stub super.onDestroyView(); try { FragmentTransaction ft = getChildFragmentManager().beginTransaction(); ft.remove(mapFragment); ft.commitAllowingStateLoss(); } catch (Exception e) { e.printStackTrace(); } }