Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
gollapallysrinivas
Posts: 94
Registered: 08-07-2010

how to protect data while updating the application

Hai,

 

 

my applicaiton is using by user's and they are storing their data.

 

Now i have to update my application,by which user's cannot  loose their old data.

 

how can i do this....

 

 

Please use plain text.
Developer
peter_strange
Posts: 14,614
Registered: 07-14-2008

Re: how to protect data while updating the application

How is your data stored?  PersistentStore, SDCard or RMS?

 

I presume PersistentStore.

 

In which case, the first option is not to change the PersistentStore object, or at least, not  change it is a way that means it will be stored differently.  So for example, if you PersistenStore object is a Vector, adding an element does not change the struture.  But if you add a new int to the class, that changes the way ti is stored. 

 

If you really must change the format of the PerisstentStore Object, then you can create a second, different persisted Object, and have your start up processing convert from the old format to the new.

Please use plain text.