Android API for Google Drive?

11,696

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.

Share:
11,696

Related videos on Youtube

AndersC
Author by

AndersC

Updated on June 04, 2022

Comments

  • AndersC
    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
    AndersC about 12 years
    So bascially just add the "Google Drive" scope and use my existing implementation for google docs using v3 of the list api? :-)
  • Claudio Cherubino
    Claudio Cherubino about 12 years
    You 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
    AndersC about 12 years
    Thank 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
    tliebeck about 12 years
    Is 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
    Alain about 12 years
    You 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
    AndersC about 12 years
    I originally tried that but never had much look actually getting it to work with Google Docs.
  • TalkLittle
    TalkLittle over 11 years
    From 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
    Matt over 11 years
    Me 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
    Hardik Joshi over 11 years
    Hello @ClaudioCherubino i have one question how to create folder in google drive from my android application ?
  • Lucifer
    Lucifer over 9 years
    I havent downvoted your answer, but your link is not working at all, hence your answer is not useful any more.
  • ʀᴀʜɪʟ
    ʀᴀʜɪʟ about 2 years
    The link is now broken!
  • Matt
    Matt about 2 years
    There's a cached version here but I have no idea if it will work anymore. web.archive.org/web/20210514033653/https://…