简体   繁体   中英

Use google drive to store android app data

I'm working on a messaging app based on the position,users can anonimously write message in the app and if an user is near the one who wrote the message he will be able to see the message on the app (I know this already exists but I'm making mine). Anyway the problem is when i need to save and load users messages and positions,i would like to use google drive (or eventually dropbox) to host data,I want to store them on my google drive and not in the user GD. I thought about creating a google spreadsheet like this:

Message        Position
"Hi everyone"  123912,123184
"Hola"         123912,123184
"Hi"           123912,123184

and then get the data every x seconds and when someone write something i'll update the sheet with the new row,I searched for this but I only find tutorial about managing the user's GD. Am I using the wrong approach?

I dont know if ur solution of using GDrive is the good one but just in case:

  • You can use the Google Drive REST api to do what you want with drive file.

here's some help https://developers.google.com/drive/v3/web/quickstart/android

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