3

I'm developing one android app. I keep some data for this app in my google drive. Is it possible when user run this app to read/write the data file that in my google drive? how to achieve it?

comrade
  • 4,590
  • 5
  • 33
  • 48
ChienHsun
  • 39
  • 3
  • try this https://github.com/googledrive/android-quickstart – Sunil Sunny Jul 04 '16 at 07:27
  • 1
    its a bad idea, your app will fail once it has a few users plus you risk an easy hack into your drive.. how-to is explained in the api docs. try it and show us the code that wont work. – Zig Mandel Jul 04 '16 at 12:48
  • I also think that's a bad idea, firebase might be more appropriate: https://firebase.google.com/docs/database/ – Anatoli Jul 05 '16 at 05:03
  • A Service Account is the best way to proceed – pinoyyid Jul 05 '16 at 06:27
  • perhaps a gmail just for the purpose of this app? if you need it linked to your account, you could make a shared folder that you could add files to, the second account would be able to access and let the app edit it. – Baby_Boy Nov 03 '20 at 17:48
  • It would be better to use a google cloud storage [bucket,](https://cloud.google.com/storage) those start at $0.01(USD.) and you get a $300 credit for signing up for google cloud storage, which comes with a bunch of goodies for developers and google app scripts users – Baby_Boy Nov 03 '20 at 17:52

2 Answers2

0

Read the instruction here,all about write and read data https://developers.google.com/drive/android/intro

Mohit Madaan
  • 469
  • 2
  • 11
  • I can find the instruction about how to read/write files of user owns google drive account. but I do not find how to let app user read/write files of my own google drive. – ChienHsun Jul 04 '16 at 07:00
0

Check the below link which contain the code and the detail about the implementation :

Android Open and Save files to/from Google Drive SDK

Community
  • 1
  • 1
Chirag Arora
  • 816
  • 8
  • 20