Code example for GoogleMap

Methods: getCameraPosition

0
 
	@Override 
	protected void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
		if (map != null) {
			CameraPosition cameraPosition = map.getCameraPosition();
			if (cameraPosition != null) {
				outState.putParcelable(KEY_CAMERA_POSITION, cameraPosition);
			} 
		} 
	} 
 
	@Override 
	protected void onResume() { 
		super.onResume(); 
		initMap(); 
	} 
 
	@Override 
	protected void onPause() { 
		super.onPause();