views:

105

answers:

1

Hi,

How can I flush my sqlite database in my application when I click on a button? I already have a database inside my app, when I click on a button it add some data into it. I wanna know how to fluch the database after I click the button or maybe restart the application automatically.

Thanks,

A: 

Ok I find what I was looking for. Don't really need to flush the database, the only things I had to do is to copy my database from the bundle to the document directory, because the database in the bundle is Read only. Make a Copy of it allow to Write/Read access.

Add/Delete/Update data can be executed without problem after that.

ludo