Reputation:
I've spent hours trying to work out how to use SDK. It seems so long winded and has about 20 dependencies but absolutely no examples of usage.
Does anyone know where I could find some examples to learn from. Dropbox was just a case of downloading the SDK and using it. Google drive only seems to have javadoc which is only helpful as a reference if you already know what you are doing.
I'm trying to do what I consider to be the most simple operations. upload, download, delete, create.
Upvotes: 8
Views: 6618
Reputation: 18705
Google has now a tutorial called Quickstart: Run a Drive App on Android.
The Drive API are at https://developers.google.com/drive/v2/reference/
If your goal is to let users open files directly from the Drive app for Android using your app, see Integrate with the Android Drive App.
Upvotes: 0
Reputation: 512
I had the same problems originally, finding a SDK that actually worked for Google Docs.
In the end I ended up implementing it on my own using raw HTTP requests, as also suggested in the other answer linked to by Alain. My implementation only handle file transfers and file management, but it is quite straightforward to implement, and works perfectly for Google Drive files also. I basically just implemented what I needed from the Google Documents List API version 3.0 found here: https://developers.google.com/google-apps/documents-list/
It took a little time, but was well worth it, and much more lightweight since I didn't have to include on all the dependencies of the various Google API's.
Upvotes: 1