Code example for AccountManagerFuture

Methods: getResult

0
	} 
	 
	public void run(AccountManagerFuture<Bundle> result) {
		Bundle bundle;
		try { 
			bundle = result.getResult();
			Intent intent = (Intent) bundle.get(AccountManager.KEY_INTENT);
			if (intent != null) {
				context.startActivity(intent);
			} else { 
				onGetAuthToken(bundle);
			} 
		} catch (OperationCanceledException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (AuthenticatorException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block 
			e.printStackTrace();