I am using google drive on android to backup files. Backup is working fine. However when I am presented with the dialog to choose an account to back up to, if I hit "Cancel" the dialog just closes and reappears. It gets caught in a loop and I am forced to choose an account. While debugging the code I see that onConnectionFailed() is called everytime I hit cancel. SIGN_IN_REQUIRED is the resolution code passed to it and so the dialog gets called again.
How can I break out of this loop and allow the user to cancel? Has anybody else had this issue?
Thanks!