Is it possible to preserve file-persisted data when upgrading an app? For example my app stores data under /data/data/mypkg/store. I would like the store directory to be preserved when user upgrades my app.
+3
A:
Application data is not deleted when upgrading apps. It is only removed when they are uninstalled
smith324
2010-09-09 02:45:04
Thanks. Good to know.
JackN
2010-09-09 02:47:33
is there a way to simulate upgrade process in development? When I upload a new version of code to emulator, it appears that Eclipse uninstall/reinstall the app
zer0stimulus
2010-09-09 03:25:38
+3
A:
Please refer to adb documents.
adb install [-l] [-r] [-s] - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
('-s' means install on SD card instead of internal storage)
adb uninstall [-k] - remove this app package from the device
('-k' means keep the data and cache directories)
Add '-r' when you reinstall.
Add '-k' when you uninstall.
Jett
2010-09-09 03:54:31
I didn't even know about this. Is there a way to duplicate thees commands from the run button in eclipse?
Falmarri
2010-09-09 04:25:49