If you do not close connections to the database, they will cause a memory leak over time. you can use startManagingCursor, but with that you need to close the db connection. By the way, what type of error or exception do you get when you close the db connection in the onStop () or onDestroy () methods
user484155
source
share