![]() ![]() Token = GoogleAuthUtil.getToken(context, account. My code: Account account = AccountManager.get(context).getAccountsByType( Select Google from the available options. From the left panel, select Online Accounts. To add your Google Drive account, search for Settings in the GNOME menu. ![]() sudo apt update & sudo apt install gnome-online-accounts. Where the code says "", I've tried to use both "API key" and the "Client ID", both gave the same error. However, if, for some reason, the app isn’t installed, then run the following command to install it quickly. It seems like the Drive object does not accept a client secret. I've also tried to create a key for an "Other" (instead of Android/iOS) installed app, but this gives me a Client ID and Client secret. I've used the key in the ~/.android/debug.keystore. ![]() The last one I've created (and tested with) was created using "Create another client ID." -> "Installed Application" -> "Android". This error most commonly occurs because: Sharing succeeded, but the notification email was not correctly delivered. To determine the limit that has been exceeded, evaluate the reason field of the returned JSON. This error can occur for several reasons. I've watched the Google I/O sesssion, but the most important part (how to create a Drive object using your Client ID & Client Secret) was left out: Resolve a 400 error: Invalid sharing request. I want want to access Google Drive to upload jpeg files. From my understanding, there are 1001 ways to access Google drive (Google Docs API, REST & Google Drive SDK v2). I've been fighting with Google Drive API for Android for more than 50 hours now, and have not come one inch closer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |