title: android synchronized sql database access
body: <p>What are some of the design options for the synchronizing the read/write of a sqlite database in an android app - something like what Google Analytics/Flurry libraries might be doing internally. They keep collecting data and send it to servers at the same time. </p>
  
  <p>The app i am making collects data during app usage - and keep saving the data in a SQLite Database - and send this information to the backend - as and when the connection is available.</p>
  
  <p>My question is how to design the SQLite DB access for the scenario when I might be writing to the app - while the app is sending data to the server. These events could happen at the same instance quite a number of times. I am not sure how do Google Analytics/Flurry work.</p>
  
  <p>SyncAdapter / Content Provider / Plain SQLIte ?</p>