Thursday, January 13, 2011

[android-developers] Development cycle without losing database?

I use this script to test my app after making changes:

if ant debug; then
adb uninstall com.rcsreg.exposmart
adb -d install bin/ExpoSmart-debug.apk
adb shell am start -n com.rcsreg.exposmart/com.rcsreg.exposmart.ExpoSmart
adb -d logcat
fi

I appears that when I do the adb uninstall, my database is getting
puffed. I'd like to keep the database from app version to app version.
If I don't do the adb uninstall, I get an error:

Failure [INSTALL_FAILED_ALREADY_EXISTS]

Is there another way to keep upgrading my app without losing
the database?

Thanks,

Tobiah

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate