Code example for IntentSender.SendIntentException

Methods: printStackTrace

0
		if (result.hasResolution()) {
			try { 
				result.startResolutionForResult(getActivity(), CONNECTION_FAILURE_RESOLUTION_REQUEST);
			} catch (SendIntentException e) {
				// TODO Auto-generated catch block 
				e.printStackTrace();
			} 
		} 
		else { 
			showErrorDialog(result.getErrorCode());
		} 
 
	} 
 
	private void showErrorDialog(int errorCode) {
		// create and show an error dialog 
		Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(errorCode, getActivity(),
						CONNECTION_ERROR_DIALOG_REQUEST);
		errorDialog.show();
	} 
Contextual code suggestions in your IDE  Get Codota for Java