Code example for SupportMapFragment

Methods: getMap

0
            // we have to try for 2 different fragment id's, using the reasonable 
        	// assumption that the base classes are going to be instantiated one at a time. 
        	Log.d("VIN", String.format("%d", mapFragmentId)); 
        	FragmentManager fragmentManager = getSupportFragmentManager(); 
            SupportMapFragment fragment = (SupportMapFragment) fragmentManager.findFragmentById(mapFragmentId); 
            mMap = fragment.getMap(); 
        	if (mMap != null) { 
                setUpMap(); 
            } else { 
            	Log.e("VIN", "map was null."); 
            } 
        } 
	 } 
	  
	 private void setUpMap() { 
		UiSettings mUiSettings = mMap.getUiSettings(); 
		mUiSettings.setZoomControlsEnabled(false); 
		mUiSettings.setScrollGesturesEnabled(false); 
		mUiSettings.setZoomGesturesEnabled(false); 
		mUiSettings.setTiltGesturesEnabled(false); 
Connect your IDE to all the code out there  Get Codota for Java