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
Trusted Contributor
user17
Posts: 145
Registered: ‎01-23-2012
My Device: 9300

Garbage collection removes persistentstorage value?

Hi All,

 

        Iam using PersistentStorage variable in my app, my doubt is while i close the app and open some other app, if Garbage collection process happned what will happens for PersistentStorage value, is it remove or not?

 

 

 

 

Thanks

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Garbage collection removes persistentstorage value?

It is not removed.

 

Have you tried it yourself?

Trusted Contributor
user17
Posts: 145
Registered: ‎01-23-2012
My Device: 9300

Re: Garbage collection removes persistentstorage value?

Hi Peter,

 

            Thank you for your response, Still iam not tried.

 

 

 

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Garbage collection removes persistentstorage value?

Give it try and come back to us if you think it is removed.  But check your code first - if persistent storage was removed when another app started, all the emails on the device would disappear whenever someone took a phone call. 

 

Don't forget to mark this as solved once you have checked.