I'm having an annoying problem with a SQLiteOpenHelper.
In my application i have a database with 2 tables. I've implemented a content provider for performing any type of database action against those tables, and a SQLiteOpenHelper to manage the database itself.
When i launch the application for the first time, the onCreate() method of the ContentProvider is being called (even before the activity is initialized, which i find very strange, but that doesn't matter at the moment) and there i'm getting a context object by calling getContext(), creates the SQLiteOpenHelper object and gets the database from it (which causes the onCreate() method of the SQLiteOpenHelper to be called since the database needs to be created).
Everything works just fine. I even succeed to enter data into the table, and even to query the data.
My problem begins when i'm launching the application at the second time. Although the database has been created in the first application launch, and data was inserted to database's table successfully (i've managed to query as i said), the onCreate() method of the SQLiteOpenHelper is being called again. It's like the database was not "saved" into the virtual device (i'm working on Emulator for now).
If someone has some sort of idea why this can happen, please tell me...