I\'m trying to connect my app to Google play service to access Google Drive but It showing me connection failed with statusCode SIGN_IN_REQUIRED.
Well i got the messages displayed in the LogCat:
GoogleApiClient onConnectionFailed with statusCode=SIGN_IN_REQUIRED
Sign in required means that we need to enable the Google Drive API https://console.developers.google.com
Download the client_id.json
file and add into the /app
folder of our project:
Then we can access with no problem, to get our expected API client connected.
:
For a better use of Google Drive API, this permissions are suggested:
You can find a complete example here:
https://github.com/Jorgesys/Android-Google-Drive