Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 79
Registered: ‎01-01-2009
My Device: Not Specified

App new version update

 

I'm not clear on how an update to a new version on the BB Application World works.

 

It updates the COD file

but does it remove the Persistent storage?

 

Thanks 

Happy coding 

 

 

Developer
Posts: 79
Registered: ‎01-01-2009
My Device: Not Specified

Re: App new version update

 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

and 

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? 

Developer
Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Re: App new version update

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.

 


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Developer
Posts: 79
Registered: ‎01-01-2009
My Device: Not Specified

Re: App new version update

Thanks Steven

 

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. 

 

 

 

 

Developer
Posts: 79
Registered: ‎01-01-2009
My Device: Not Specified

Re: App new version update

and one more thing

 

for an update to work, my understanding is that the App name and the Vendor name gotta be kept intact.

 

is that true?