title: Updating a ListView with frequently changing data in Android
body: <p>The question posted in <a href="https://stackoverflow.com/questions/3639369/proper-implementation-of-changing-listview-data-with-cursoradapter">this</a> thread asks how to update a ListView when the data has changed. It assumes, however, that the data that is modified in a ListView is stored in a database. Therefore, the ListView UI can be updated by simply calling requery() after the changes have been committed to the database.</p>
  
  <p>What should one do when modified data of a ListView is <strong>not</strong> stored in a database?  </p>
  
  <p>For example, if each item in a ListView is showing the distance to a particular landmark based on the user's current GPS coordinates, what is the correct way to update the view with the updated distances as the user moves about?  Should the distances simply be stored in the database as a matter of convenience, so that requery() will update the UI? This does not seem like the correct approach if it is not necessary to persist (frequently changing) GPS data.</p>
  
  <p>Edit: To clarify, I'd specifically like to address the situation where some of the data is stored in a database (the coordinates of the landmarks, for example), however, the frequently changing data is computed on the fly (e.g., the distances).</p>