title: A SQLiteConnection object for database was leaked! Please fix your application
body: <p>My application give me this warning</p>
  
  <blockquote>
    <p>A SQLiteConnection object for database
    '+data+data+com_example_test+database' was leaked! Please fix
    your application to end transactions in progress properly and to close
    the database when it is no longer needed.</p>
  </blockquote>
  
  <p>But I close the db object and the cursor after every use.</p>
  
  <pre><code>        try {
              while (cursor.moveToNext()) {
                ...
              }
          } finally {
              if (cursor != null &amp;&amp; !cursor.isClosed())
                  cursor.close();
          }
  
  ...
      db.close();
  </code></pre>
  
  <p>Can you help me for understand what is the problem?
  thanks!!!</p>
  
  <p><strong>UPDATE!</strong>
  I try this solution from this post
  <a href="https://stackoverflow.com/questions/18147354/sqlite-connection-leaked-although-everything-closed/18148718#18148718">SQLite Connection leaked although everything closed</a></p>
  
  <p>and I don't have memory leak anymore, is it a good solution?</p>