title: Android Open and Close Database
body: <p>I read a lot of discussions here on StackOverflow and also many on websites in the internet about: When should I open and close my sqlite-database.
  I have read a wide range of responds and guesses from different periods.
  So in the end I'm more confused than before. What people suggested:</p>
  
  <ol>
  <li><p>Close your db in onDestroy()
  Comments: "OnDestroy() does not get called always! Use onStop()!"
  --> So onStart() has to open it.</p></li>
  <li><p>The db works efficiently. No need to close it.</p></li>
  <li><p>Open your db once and create a field and an accessor.</p></li>
  <li><p>Close after use.</p></li>
  </ol>
  
  <p>And many more...</p>
  
  <p>So what is correct proceed in 2016? Pls do not guess!</p>
  
  <p>Examplelinks:</p>
  
  <p><a href="https://stackoverflow.com/questions/16171512/android-opening-and-closing-sqlite-database">Android: opening and closing SQLite database</a></p>
  
  <p><a href="https://stackoverflow.com/questions/31020050/android-closing-database">Android Closing database</a></p>