Keeping data while updating app

Monkey Targets Forums/Android/Keeping data while updating app

Volker(Posted 2012) [#1]
Like the topic says, is there a way to do this?
I ran into the problem that when updating my app, the level unlocks, which are stored in a textfile, are lost.
I see no way to keep them, because I would need something like
a read access before updating. Under windows I would use
the registry, but under Android?


Xaron(Posted 2012) [#2]
Hmm... I've never had this problem. All my data always stays there... Do you use LoadString/SaveString?


Volker(Posted 2012) [#3]
The data is stored with SaveState() in a text file and
loaded with LoadState().
But I've deinstalled the app and installed new version. My fault.
So if you say the SaveState data stays there, I'm happy!


Xaron(Posted 2012) [#4]
Oh well yes, I meant SaveState/LoadState. I have 3 apps in the markets and my data always kept remain in place.