views:

27

answers:

0

I have basically finished developing an android app that makes use of SQLite databases that I copy to the user data area on the device eg /data/data/com.company.app/databases/users.db

I am unsure how the marketplace app update procedure takes place and am also unsure as to how I could test it.

I currently check whether the database exists on the device and copy it if it doesn't (generally only occurs on first ever launch). What happens if I have a new version of the database in my updated app? Will an marketplace update wipe user data so that it will copy my new database in on next launch?

What happens in the future if I make database changes/add records/etc and package this with the new app? Will this database not overwrite the old database?

Otherwise, to avoid copying and overriding the databases from the app bundle on every launch is there a way to check the size and date of the database files and only copy if the database in the bundle is newer?

If anyone needs clarification please ask.