title: When to close cursor in Android?
body: <p>I have an app that uses a cursor to select data via <code>rawQuery</code> from an SQLite DB to populate a ListView in Android. Every time the user clicks on a listview item I create a new instance of Activity to re-populate listview.</p>
  <p>Is it better to call <code>cursor.close()</code> and <code>db.close()</code> to avoid memory problems? I actually have <code>db.close()</code> in <code>OnDestroy()</code> of my activity.</p>