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?
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. . .