Code example for SupportMapFragment

0
    static final LatLng HAMBURG = new LatLng(53.558, 9.927); 
 
    public void onCreate(Bundle savedInstanceState) { 
        super.onCreate(savedInstanceState); 
 
        SupportMapFragment mMapFragment = new SupportMapFragment(); 
        getSupportFragmentManager().beginTransaction() 
                .add(android.R.id.content, mMapFragment).commit(); 
 
        /* if(mMapFragment != null){ 
            GoogleMap map = mMapFragment.getMap(); 
 
            Marker hamburg = map.addMarker(new MarkerOptions().position(HAMBURG) 
                    .title("Hamburg")); 
        } 
        */ 
    } 
}