07-07-2011 11:15 PM
The information on the forum is inconsistent.
Some suggest that the Persistent data is removed if the app name or the vendor name been changed
one post says if the Persistent storage data is modified, meaning for instance that if you have a vector of a fixed
size and in the new version you added more elements to it , it will be removed by the update process
Can someone confirm one or the other?
07-07-2011 11:29 PM
I have seen a few reasons why the persistant storage could be erased on update :
1) The object size has changed.
2) The package name has changed (even if the object is exactly the same).
If you store a String and keep the same package name the persistant storage should be kept.
07-08-2011 01:13 AM
well, one way to store data is to have a Vector and store data as elements.
In my case I have a Vector of a fixed size, i need it a fixed size due to the design,
when u set Vector.setSize(10) for instance it 10 nulls will be created one for each element.
from what you are saying, since the obj Vector size changes from 5 elements to 10 elements,
even though they are all nulls in the innitial state,
the Persistend object will be deleted by the update.
Is that correct?
I actually want it do be deleted in the future updates.
I can go a different way as to change the name of the Persistent storage object, but the above is prefered.