Android AsyncTask and SQLite DB instance
问题 I have a problem and I am not sure how to approach it. An activity in my app has multiple AsyncTask s which access single SQLiteOpenHelper . I initialize and open the helper in onCreate() and I am closing it in onStop() . I also check if it has been initialized in onResume() . Since I have published my app I received number of errors with Null Exception in doInBackground where I try to access the DB helper. I know that this is happens because the DB is closed ( onStop() ) just before the