I am writing an Android application and I need to request an Auth token from my account. Getting a list of accounts and a token is easy, it still works for me.
The problem is that Jelly Bean opens a popup asking for permission from users. Now my question (s):
- What are the rules for popping up a dialog box? It happened to me once, for the first time after I updated my device to Android 4.1. This seems to be happening by accident: installing and uninstalling the application, I could not reproduce the situation when this popup returns.
- Is there any way to reset without doing factory reset? I need to reproduce this for testing for question 3.)
Is there a way to find out if a popup will appear before asking for an authtoken, and i.e. wait until it is no longer needed (that is, if the user has the specified application installed, but never used, or if authtoken has expired?) and request it then?
I know that most Android users are very inexperienced and might be scared by some permission requests, and I would like to avoid the authtoken request when it pops up this user’s popup.
user1662985
source
share