views:

144

answers:

1

Hi,

I completely revamped an app. Tested it for a while on my device and emulator. The app worked fine. However when I updated the app through the Android market, my users experienced crashes.

Since there is no way to properly debug this procedure I asume the crash is caused by old data which is not being removed from the device (probably from the onsavedstate bundle?!).

Is there a way to do a "clean/total" reinstall without having the user to do it manually?

Best Regards Johe

+1  A: 

When the variable that's giving you trouble is overwritten with the proper type on the next OnPause, the class cast problem should be gone. You could reserve one variable to hold a version number and if the one you retrieve from OnResume is older you skip the other saved values and use the defaults.

Schermvlieger
My solution works kinda like that. Thanks.
Johe Green