简体   繁体   中英

upload sdcard docs to Google Drive in android

From my application, I want to upload sdcard documents to google drive for a particular Gmail account.

I referred this documentation on google drive . But I don't understand how to do that. Please help me, Thanks in advance

I would start here Google API for java

Download the API and explore the documentation on how to use it. The link also provides code samples you should be able to try out and experiment with. From what I've discovered in a few minutes, you first need to get authorization using OAuth 2.0

Then it's just a matter using Drive.Files.insert() (which is apparently a JSON PUT) The API also allows other functionality, like listing documents, copying, deleting, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM