Android API for Google Drive?
Solution 1
edit: with the deprecation of the docs list API, this is no longer the best solution
You can use the existing Documents List API to access Drive resources, they share the same endpoints.
Solution 2
Here is a guide to integrate your app with Google Drive
Solution 3
Unfortunately the Documents List API is mainly documented in .NET (just the oauth is in java). For the life of me I am struggling putting together the end points in the gdata jar to upload a simple file. Tried to use the .net example as a guide put couldnt find the comparable classes in java.
Related videos on Youtube
AndersC
Updated on June 04, 2022Comments
-
AndersC almost 2 years
It seems the currently released API is focused on Chrome store apps.
Will there be an API for Android or is it possible to use and existing API like the Google Documents list data? And if so, which URL should be used for listing/accessing files?
-
AndersC about 12 yearsSo bascially just add the "Google Drive" scope and use my existing implementation for google docs using v3 of the list api? :-)
-
Claudio Cherubino about 12 yearsYou don't need to add the Google Drive scope to use the Documents List API. Basically, if you already have a working implementation that accesses Google Docs resources you are all set.
-
AndersC about 12 yearsThank you. I haden't even thought of trying that, but now that I did. I see that I have 5 GB of space vs 1 GB before, so I guess that means my account is "Drive" enabled (even though I can log in using the webbrowser, because my account is not yet "enabled"). Thanks for the quick answer also. :-)
-
tliebeck about 12 yearsIs there a Documents List API available which is compatible with Android? I've found this: code.google.com/p/gdata-java-client , but it specifically disclaims against Android usage and suggests instead using code.google.com/p/google-api-java-client , which doesn't provide a service implementation for Docs.
-
Alain about 12 yearsYou can use the gdata-java-client library on Android though we do encourage using the newest client library (google-api-java-client) as it provides more lightweight dependencies; depending on your use-case, you might want to use the former, or use the latter and write data classes using some available samples as model.
-
AndersC about 12 yearsI originally tried that but never had much look actually getting it to work with Google Docs.
-
TalkLittle over 11 yearsFrom your link, it reads like this is the recommended way to access Google Drive from Android. I'm confused why this answer is at -1.
-
Matt over 11 yearsMe too. I don't mind the downvotes if what I've posted is wrong, but I would like an explanation as to why.
-
Hardik Joshi over 11 yearsHello @ClaudioCherubino i have one question how to create folder in google drive from my android application ?
-
Lucifer over 9 yearsI havent downvoted your answer, but your link is not working at all, hence your answer is not useful any more.
-
ʀᴀʜɪʟ about 2 yearsThe link is now broken!
-
Matt about 2 yearsThere's a cached version here but I have no idea if it will work anymore. web.archive.org/web/20210514033653/https://…