30 Nov 2012, 18:56
Generic-user-small

Otis William Doss III (1 post)

As I understand things from Chap 9, the default location of the SQLite database file is in the directory /data/data//databases. Now if I uninstall and application because I am debugging, developing, etc. is that file deleted? If I reinstall the application do I need to rebuild the database? If this is the case, and I don't want to have to rebuild the database everytime I reinstall an application, can I move the file to another location? Where is a "safe" location to move it?

Many, many thanks, Bill

14 Apr 2013, 01:49
Burnette_ed_pragsmall

Ed Burnette (1316 posts)

If your app is uninstalled, the /data/data/directory for your app is removed also. If you don’t like that, then you can put your database in a subdirectory you create in /sdcard. But be aware that anybody can see it there and delete or change it.

  You must be logged in to comment