Code example for IntentSender.SendIntentException

Methods: printStackTrace

0
			try { 
				connectionResult.startResolutionForResult(this,
						CONNECTION_FAILURE_RESOLUTION_REQUEST);
			} catch (SendIntentException e) {
				// Log the error 
				e.printStackTrace();
			} 
			// If no resolution is available, display an error dialog 
		} else { 
			// Get the error code 
			int errorCode = connectionResult.getErrorCode();
			// Get the error dialog from Google Play services 
			Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(
					errorCode, this, CONNECTION_FAILURE_RESOLUTION_REQUEST);
			// If Google Play services can provide an error dialog 
			if (errorDialog != null) {
				// Create a new DialogFragment for the error dialog 
				ErrorDialogFragment errorFragment = new ErrorDialogFragment();
				// Set the dialog in the DialogFragment 
				errorFragment.setDialog(errorDialog);
				// Show the error dialog in the DialogFragment