You have
class="com.google.android.gms.maps.SupportMapFragment"
But while you initialize you have
mapView = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
Should be
mapView = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();
If a GoogleMap
is not available, getMap()
will return null. So better check the availability of google play services before initializin map object