Code example for UserRecoverableAuthException

Methods: getIntent

0
			token = GoogleAuthUtil.getToken(this, email,
					"oauth2:https://www.googleapis.com/auth/userinfo.email"); 
		} catch (GooglePlayServicesAvailabilityException playEx) {
			message = playEx.getMessage();
		} catch (UserRecoverableAuthException e) {
			startActivityForResult(e.getIntent(), REQUEST_AUTHORIZATION);
		} catch (GoogleAuthException authEx) {
			// This is likely unrecoverable. 
			message = authEx.getMessage();
		} catch (IOException ioEx) {
			// doExponentialBackoff(); 
			message = ioEx.getMessage();
		} 
 
		return token;
	} 
 
	private String getUrlByStatus(String detail) {
		return String.format(GOOGLE_API_URL, detail);
	}