Pinki
Pinki

Reputation: 21919

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

Upvotes: 2

Views: 948

Answers (1)

user1541338
user1541338

Reputation: 29

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.

Upvotes: 1

Related Questions