Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Google Drive in a Java Desktop app?

I am dealing with mobile and desktop applications. I am trying to use Google Drive as a permanent storage folder. Unfortunately I am at a loss because I cannot find any examples. Can someone point me at an example of storing or retrieving a file from Google Drive?

I would really like to see a simple example in code or maybe a library which can handle this. I am stuck at Retrieve and Use OAuth 2.0 Credentials https://developers.google.com/drive/credentials

like image 698
AdamOutler Avatar asked Jun 04 '12 19:06

AdamOutler


2 Answers

Did you look at the sample app on the drive API page?

edit

google moved the examples to github

like image 89
corn3lius Avatar answered Oct 20 '22 14:10

corn3lius


I don't know if I figured out your problem. What I have understood is that you are looking for a way that makes you able to work on the same project from different computers.

If so, you simply have to download Drive. Once install it will ask you what folder you want to keep syncronized with Drive. If you select your workspace, it will be syncronized with Drive. So, on another pc, if you have installed Drive, you will be able to use the workspace folder too, with the same files.

I hope this is helpful.

Marco

like image 1
smellyarmpits Avatar answered Oct 20 '22 14:10

smellyarmpits