title: Android SQLite database shared between activities
body: <p>What is the best way to share one SQLite DB between several activities? Tables from the DB are shown in ListView, and also deleting/inserting records is to be performed. I heard something about Services, but did not find any example for my problem. Now I have SQLiteOpenHelper class for opening the DB. I close the DB in OnPause() and open it in onResume(). But I can't insert data to the DB from sub-activity, something goes wrong.</p>