Search code examples
androidjsononline-storage

How to Store JSON array data of android app remotely?


I have created an android app where the data is being managed in JSON Array. App is working fine but i would like to share data of application in different mobiles, is there a possibility to save data remotely in internet and sync that json to my other devices. I am assuming some way like from my application if i click a button the JSON data will be stored in Google drive, and if i click sync data button from another mobile the data from the google drive location should download to my device.


Solution

  • yes you can use firebase and convert json to gson string using serialize deserialize and convery to string and send and fetch from other side convery gson to json. any query ? help:-https://www.androidhive.info/2016/10/android-working-with-firebase-realtime-database/