BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 09-03-2010, 12:47 AM   #1 (permalink)
Knows Where the Search Button Is
Join Date: Mar 2009
Model: 8100
Carrier: Airtel
Posts: 16
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Persistent Store not getting cleared after deleting application

Please Login to Remove!

Hello Everyone,

Please help me guys..I am using PersistentStore to store my Boolean and Vector objects...but after deleting my application from the device the PersistentStore still exists...

In this forum i have gone through many similar threads and even through the knowledge center but everywhere just found that if we store any Object in persistent store and use it within our application then it gets deleted once the application is removed....but this is not at all working for me...

Will using Persistable interface help me out...

Please tell me what should do to get out of this problem...hoping for a reply..

Old 09-03-2010, 07:31 AM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

The persistent store is only removed if it contains custom objects.

You should probably subclass your Vector (make sure you implement Persistable) and give it your own CustomVector name (or something like that). Then the OS will remove it when your app is deleted.

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.