In my app i showing google map version2 in a fragment. but i get Null pointer exception at
mMap = ((SupportMapFragment) getFragmentManager().findFragmentById(R.id
try to change this:
FragmentManager myFM = getActivity().getSupportFragmentManager(); final SupportMapFragment myMAPF = (SupportMapFragment) myFM .findFragmentById(R.id.map);