How can I make Android application data persistent? -


i new android development , creating "todolist" app in android.

i used sqllite database save list in database table, , saved data perfectly.

i don't have android phone, can check application using emulator.

after saving tasks in database, if user restarts phone task list in database deleted or not? if deleted how can make data in table persistent?

the table stays if user reboots phone. off top of head, think way rid of table either:

  • delete (programmatically or via sql command line)
  • uninstall application

simply upgrading application new version not delete existing tables (so long use same keystore when making apk.)

-- dan


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -