Error in persistent storage when the application update that happened.

I've been struggling with the problem for a long time.

MY application uses a persistent storage to store parameter information.

But when I update my application from version 1 to version 2, number of items in my configuration page has been changed, which means the new version of the page layout will load and save some new stuff in a persistent storage that did not exist in the old persistent storage.

Problem occurs when custorms update their request. How can we drag all the old stored information when users start to use the updated application?

I see these three options:

(a) the best thing to do is to delete the old application, which will get rid of the old persistent data.

(b) create a 'version2' of you persisted object with a different name.  In your treatment of startup, you see if there is a version 1 object, and if so, migrate the setting of the object Version in 1 to your new object.

(c) try to your compatible changes.  There are different ways to do this.  A way that is easy to understand is to persist a string, which is your options encode in XML format.  If you use an XML string, then you can add a new attribute to your new options - but the persistent object remains the same.

I hope this helps.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • HP Z600 workstation: Z600 - POST error beep (5 five beeps)

    I bought an opportunity Workstation Z600 with 12 GB of ram and two processors E5520 Xeon a year ago. It has operated VMware esxi 6 like a champ, 24/7, no problem.  I made a change to esxi to activate technology hyper threading that I had not been act

  • Update Blu Ray or graphics for m7-j020dx

    I just got a m7-j020dx of the local big-box store, it seems to be very similar to the HP ENVY 17 t-j100 Quad Edition Notebook computer TouchSmart, then my question is based on what is available on the 17 t - j100. Can I get a 'Blu - ray player & Supe

  • difficulties to remove silverlight so that I can download another version of silverlight

    I have Comcast cable, when I go on some premium channels other than HBO, I get a message from Silverlite version upgrade.  I removed the current version and downloaded the updated version, but it did not download properly.  When I try to remove it in

  • Excel 2007 Analysis ToolPak dissappeared

    I can access is no longer my utility analysis in Excel 2007, it is not listed on the tab section "analysis", I tried to recharge it via the Add-Ins option, but it is not here or under the browse option.  Please could you let me know how I can recharg

  • Windows Installer are not available.

    Well, I'm 14 and did NOT know anything about PC, a little. so my problem is that when I tried to install c ++ 2008 visual or as steam, a window appears and says Could not access the Windows Installer service. Contact your support team to verify that