07-28-2011 12:32 AM
I use persistObject to store some variable in program, after I modify some function and update the new version to device, I found that the history data has gone. how to keep the history data after upgrade software? my software is autostart in device boot, so to update it you must reboot device.
Solved! Go to Solution.
07-28-2011 10:51 PM
If the size of the object that you are storing changes then it gets erased.
If you change the package name where you stored the object then it will get erased.
I typically using Strings so they always stay across upgrades.
08-16-2011 04:58 AM - edited 08-16-2011 07:59 AM
If you change the size of a String, that will change the size of the Object in storage which does not cause this problem, so I think that size change as a general reason for not upgradeable Objects is not accurate. You will find out more here:
Edit: This Post is intended to clarify the previous post which said:
"I found that change size of storage will erase old"
rather than the preceding post from JaredCo.
08-16-2011 07:40 AM