I need to add initial values to SQLite database, once application is started first time. How should I do it?
You should check the number of objects inside your database each time you open the database for the first time in your app. Don't forget that user can free all data.
//Open DataBase
MyDb.Open();
//Get All List
MyCursor = MyDb.getAllNames(); //You should have a function to get all the table data
//First Time we open Database, add default Values
if ( MyCursor.getCount() < 1 )
{
AddDefaultValuesToDataBase();
}
From Here you can continue to get the values again.
Hope it helps, BR, Adrian.