Code example for AccountManagerFuture

Methods: getResult

0
			AccountManagerFuture<Bundle> future = am.getAuthToken(acc, type, null, act, null, null);
			 
			Bundle bundle = null;
			 
			try { 
				bundle = future.getResult();
			} catch (OperationCanceledException e) {
			} catch (AuthenticatorException e) {
				AQUtility.debug(e);
			} catch (IOException e) {
				AQUtility.debug(e);
			} 
			 
			return bundle;
		} 
		 
		 
		@Override 
		protected void onPostExecute(Bundle bundle) {
			 
			if(bundle != null && bundle.containsKey(AccountManager.KEY_AUTHTOKEN)) {