title: Android queue http requests while network is unavailable and process them when turned on
body: <p>I'm new in Android and I created a little app that tracks my location. Now I what I need to do is to send these locations to external API in JSON format and I was able to get it working also.</p>
  
  <p>The problem is, what if network connection is unavailable? And what if I turn off my device?</p>
  
  <p>I need to do something that will hold those locations in queue and proceed them to API if network connection would be available again.</p>
  
  <p>I thought about maybe holding them in SQLite but I am afraid about performance. Maybe some IntentService that would process the queue? What would you suggest? How should I solve those problems?</p>