G
G
guerrrka2018-10-20 23:41:16
Android
guerrrka, 2018-10-20 23:41:16

How to store data on Android?

I am writing a small application. There was a need to store data (I use firebase).
Will this implementation be correct:
There is access to the Internet - when data is added to the application, they are immediately sent to the server. If there is no access to the Internet, they are saved locally, and when accessing the Internet, they are synchronized with the server.
If yes - how to store data locally? sqlite?
And how to implement data synchronization? Those. so that each time the Internet is restored, not to transmit the same information that is already on the server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
illuzor, 2018-10-21
@guerrrka

Everything has already been done for you. Firebase out of the box has the ability to store data offline and synchronize when access to the Internet appears. Read the documentation or something.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question