0

I am trying to build an app that will use an SQLite database. My question is once the database is created, will all data still be there once the app is closed, i.e.: the database won't be overwritten when the app is restarted?

tripleee
192k37 gold badges319 silver badges370 bronze badges
asked Aug 22, 2012 at 19:11

4 Answers 4

1

You, as a developer are the only one who have access to this database, thus it is only your code which will be allowed to change the state or content of this database.

answered Aug 22, 2012 at 21:55
Sign up to request clarification or add additional context in comments.

Comments

0

Yes, the data will remain there.

answered Aug 22, 2012 at 19:12

Comments

0

The data will remain there because of your default create method. There is a status code. You can use SQLScout http://www.idescout.com/ to visualize the table and watch its change step by step.

answered Aug 14, 2017 at 4:14

Comments

0

Yes, data will remain in your application when you close the application. When you run the application the database create in the application.

But yes, if the user uninstalls, the application then user will lose the application. On the other hand, if you want to save the data when the application is uninstalled, then it's better to create the database in SDCard.

tripleee
192k37 gold badges319 silver badges370 bronze badges
answered Aug 28, 2015 at 7:08

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.