I am new to Android and I created a small application that tracks my location. Now I have to do this to send these locations to an external API in JSON format, and I also managed to get it working.
The problem is that if a network connection is not available? What if I turn off my device?
I need to do something that will contain these places in the queue and pass them to the API if the network connection is available again.
I thought about maybe keeping them in SQLite, but I'm afraid of performance. Maybe some IntentService that would handle the queue? What do you suggest? How can I solve these problems?
source share