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
Super Contributor
Posts: 257
Registered: ‎05-05-2011
My Device: 9700
My Carrier: AT&T
Accepted Solution

Memory cleaning in BB

Hi everyone,

 have you faced the *bug* when you delete your app from device, and even check deletion using BB Master Control Program, and even clean the memory in "Settings", but data binded to persistent key still here and you therefore have to change this key to test new version of the app?? I've changed 3 persistent keys while developing my app, and I think it's wrong behavior. Is it usual situation or what?

Developer
Posts: 95
Registered: ‎01-25-2010
My Device: 9530

Re: Memory cleaning in BB

if Your persisted data(object) that are defined in the BlackBerry API then your data by default will stay behind
when your application is deleted from the device.

 

If you used one of your own classes which extends persistable - then it will be deleted when your Application is deleted,



Super Contributor
Posts: 257
Registered: ‎05-05-2011
My Device: 9700
My Carrier: AT&T

Re: Memory cleaning in BB

actually, I use my own class which implements persistable. But it is never deleted after removal of app. As I wrote, even using tools to totally remove app from device and blackberry memory cleaning don't help. 

Trusted Contributor
Posts: 159
Registered: ‎02-17-2011
My Device: Not Specified

Re: Memory cleaning in BB

For delete all data from persistent store use below method.

 

PersistentStore.destroyPersistentObject(key);

Highlighted
Developer
Posts: 95
Registered: ‎01-25-2010
My Device: 9530

Re: Memory cleaning in BB

This thread may help you..

 

Persistent Store Across Application Upgrades