I am using AccountManager to get OAuth 2.0 Token.
mAccountManager.getAuthToken(mAccount, AUTH_TOKEN_TYPE, true, new AccountManagerCallback<Bundle>() { @Override public void run(AccountManagerFuture<Bundle> future) { Bundle bundle = future.getResult(); if (bundle.containsKey(AccountManager.KEY_AUTHTOKEN)) { String authToken = future.getResult().getString(AccountManager.KEY_AUTHTOKEN); ... continue } } } }, null);
If the token is received for the first time, the AccountManager displays a notification in the status bar, in which the action begins, requesting permission to access the account.
The question is, how can I immediately display this activity without clicking "Notification"?
If someone does not have specific information about this, but useful links, write.
source share