Code example for SupportMapFragment

0
 
    @Override 
    protected void onCreate(Bundle savedInstanceState) { 
        super.onCreate(savedInstanceState); 
 
        SupportMapFragment fragment = new SupportMapFragment(); 
        getSupportFragmentManager().beginTransaction() 
                .add(android.R.id.content, fragment).commit(); 
    } 
}