Can you include your layout xml?
If your map fragment is SupportMapFragment
(com.google.android.gms.maps.SupportMapFragment
), use:
mMap = ((SupportMapFragment) getFragmentManager ().findFragmentById (R.id.map)).getMap ();
or
if your map fragment is MapFragment
(com.google.android.gms.maps.MapFragment
), use:
mMap = ((MapFragment) getFragmentManager ().findFragmentById (R.id.map)).getMap ();
EDIT: The actual answer to the OP's question: Make sure you're using the right class name for the Map Fragment when declaring it in your layout XML.