123123.JPG

어플을 처음 실행시는 db에 insert update 등등 모든 기능이 잘 되는데요

어플을 종료 후,  다시 바로 실행하면 illegalStateException이 발생합니다.
 attempt to acquire a reference on a close SQLiteClosable 이란 말이 뜨면서요..

그래서 onDestroy할 때 SqliteOpenHelper 와 getWritableDB를 close 시켜줬는데요,

그래도 IlllegalStateException이 발생합니다... (attempt to acquire a reference on a close SQLiteClosable)

앱 종료 시 DB를 종료해주는 확실하고 안전한 방법을 알고 싶습니다.