I am new to Android development and am creating a “ToDoList” app in Android.
I used a SQLlite database to save the list in a database table, and
it saved data perfectly.
I don’t have an Android phone, so I can check my application
only using an emulator.
After saving tasks in the database, if a user restarts the phone then will my task list in database be deleted or not? If it will be deleted then how can I make the data in the table persistent?
The table definitely stays if the user simply reboots the phone. Off the top of my head, I think the only way to get rid of the table completely is to either:
Simply upgrading your application to a new version will not delete your existing tables (so long as you use the same keystore when making the APK.)
— Dan