You have to declare fragment class of map in your xml layout as below: Which is used to load the GoogleMap
in your fragment.
Have your referred Add a Map in your Application ?
EDITED:
The error is because your application contains the API level below 12 . And Please note that the code below is only useful for testing your settings in an application targeting Android API 12 or later, Below code should not be used in a production application.
googleMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
So instead try as below:
mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
.getMap();