title: Closing a Database in onPause()
body: <p>Is it best practice to close your database when the activity is paused? Or is it safe to leave the database open regardless of the state of the activity?</p>
  
  <p>Curious to know because if i close my database in onPause() 
  then try to reopen it in onResume() it throws a null pointer exception and says trying to re query a database from an already closed cursor. . . </p>