I\'m trying to set up an Android app that can manipulate files stored on my personal Google Drive account using the guidelines at Google Drive REST API Overview.
I\'
I got the exact same problem, in my case the loop was due to the fact that I did not create my credentials for my app...
The details are described here: https://developers.google.com/drive/android/get-started
You must retrieve your SHA-1 keys for both the debug and production environments and add them in your credentials in the Google Developers Console as described in the guide.
Once I added these credentials, the loop stopped right away.