title: when is Is it essential to close the database?
body: <p>i saw many posts here about it but i just cant get my app to stop sent me errors about me not closing DB . my DB is acces sometimes by the activity and sometimes from background class(service) .</p>
  
  <p>i added to the activity's using DB</p>
  
  <pre><code>protected void onDestroy() {
      Log.d("OnDestroy", "called");
      sqlAdapter helper = new sqlAdapter(StartScreen.this);
      helper.close();
      super.onDestroy();
  }
  </code></pre>
  
  <p>as suggested here in many post but it wont solve the problem .</p>
  
  <p>any ideas or explain to help me understand ? the app not crash or anything but a lot of error about me not closing the DB</p>
  
  <p>thanks!</p>