Code example for AccountAuthenticatorResponse

Methods: onResult

0
 
	public static void addAccount(Context ctx, String username, String password, Parcelable response) {
		AccountAuthenticatorResponse authResponse = (AccountAuthenticatorResponse)response;
		Bundle result = AccountAuthenticator.addAccount(ctx, username, password);
		if(authResponse != null)
			authResponse.onResult(result);
	} 
	 
	private static class AccountAuthenticator extends AbstractAccountAuthenticator {
  
		private ITekPubApi mApi;
		private Context mContext; 
		 
		public AccountAuthenticator(Context context) {
			super(context);
			mContext = context; 
			 
			mApi = TekPub.getInstance().getInjector().getInstance(ITekPubApi.class); 
		} 
				 
Connect your IDE to all the code out there  Get Codota for Java