10-31-2008 02:07 AM
11-03-2008 11:01 AM
If you stored class instances of your old application this data is going to be removed when you uninstall your application. If you stored other class instances, for example java.util.Vector instance(s) this data will remain in persistent store.
That's hard to say will the RIM OS preserve data when you delete cod-modules programatically. Most likely the aforecited rule should work in this case too.
It needs to be checked. Just create a simple app and write to data the persistent store. After that renew it programatically and try to access data with the same persistence key.
11-11-2008 01:50 PM
Please see the following link.
How To - Handle stored data when removing an application
However, note that an application can not update itself using CodeModuleManager. You would need to create a second application that does the updating. Alternatively, you could invoke the browser and open your JAD file to update the application.