Code example for GoogleMap

Methods: moveCamerasetOnCameraChangeListener

	    		    .add(ne, nw, sw, se) // 4 corners, ccw
                // One time fix to set the camera when the map is done loading 
                map.setOnCameraChangeListener(new OnCameraChangeListener() {
                    public void onCameraChange(CameraPosition arg0) {
                        // Move camera. 
                        map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 10));
                        // Remove listener to prevent position reset on camera move. 
Contextual code suggestions in your IDE  Get Codota for Java