title: How to refresh a ListView to requery its cursor to repopulate its data and its views
body: <p>I have a ListView which uses a CursorAdatper as its adapter.
  I would like to have the list view to</p>
  
  <ul>
  <li>requery its data </li>
  <li>refresh its view once the requery is done.</li>
  </ul>
  
  <p>I tried:</p>
  
  <pre><code>CursorAdapter adapter = (CursorAdapter)listView.getAdapter();
  adapter.notifyDataSetChanged();
  </code></pre>
  
  <p>And i tried:</p>
  
  <pre><code>CursorAdapter adapter = (CursorAdapter)listView.getAdapter();
  adapter.getCursor().requery();
  </code></pre>
  
  <p>but none worked.  I have set a break point in my <code>ContentProvider</code>'s query method, but I don't see the requery being called or my ListView getting refreshed with new data.</p>
  
  <p>Can you please tell me what is the solution to my problem?</p>
  
  <p>Thank you.</p>