Code example for AccountAuthenticatorResponse

Methods: onRequestContinued

0
		super.onCreate(icicle);
 
		mAccountAuthenticatorResponse = getIntent().getParcelableExtra(AccountManager.KEY_ACCOUNT_AUTHENTICATOR_RESPONSE);
 
		if (mAccountAuthenticatorResponse != null) {
			mAccountAuthenticatorResponse.onRequestContinued();
		} 
	} 
 
	/** 
	 * Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present. 
	 */ 
	@Override 
	public void finish() 
	{ 
		if (mAccountAuthenticatorResponse != null) {
			// send the result bundle back if set, otherwise send an error. 
			if (mResultBundle != null) {
				mAccountAuthenticatorResponse.onResult(mResultBundle);
			} else { 
				mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, "canceled");