BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-12-2007, 11:37 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2007
Location: Delaware
Model: 8310
Carrier: AT&T
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question What Happens To My Store After Installation?

Please Login to Remove!

If my application, which uses persistent store, gets uninstalled on a blackberry, what happens to the persistent store? Does it remain there forever or does it get removed automatically?
Offline  
Old 09-12-2007, 12:28 PM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

When you remove an application from your device, associated persistent storages are removed as well
Offline  
Old 09-12-2007, 01:48 PM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: TDC
Posts: 115
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bemshaswing View Post
When you remove an application from your device, associated persistent storages are removed as well
hmmm... i have experienced otherwise and i have to dissagree with you.

A store is associated with a key which is lasting until you destroy it.
Offline  
Old 09-12-2007, 01:56 PM   #4 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

the specs say that's the case and I've seen that whenever I delete an application off the device the persistent storages always go with it but I can't be 100% certain though
Offline  
Old 09-12-2007, 02:40 PM   #5 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: TDC
Posts: 115
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bemshaswing View Post
the specs say that's the case and I've seen that whenever I delete an application off the device the persistent storages always go with it but I can't be 100% certain though
I just found some specs on it too which agrees with you. however ive created a custom database (of hashmaps) which exists even if i pull off the application that initially created it
Offline  
Old 09-12-2007, 03:05 PM   #6 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Oct 2006
Model: 7103
Carrier: Verizon
Posts: 259
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

yeah, I'm never certain of anything really, I've been developing in this env for a while now. however, the only time I've ever seen, in my own testing, a database persisting past this supposed deletion is when I try to OTA install an update to an application while the application already exists. Theoretically the application is deleted, the OS rebooted, the application is loaded and placed into the JRE. Theoretically when said application is deleted, so goes it's persistent storage but for some reason OTA updates allow you to keep them. dunno bout anything else though
Offline  
Old 09-12-2007, 05:53 PM   #7 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: Berlin
Model: 9500
OS: v4.7.0.78
PIN: 20CAFA18
Carrier: O2
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You must differentiate between J2ME development and BlackBerry development. The pure J2ME delete your storage if you uninstall your app while the BlackBerry generic storage persists if you don't take care of it.
Offline  
Old 09-12-2007, 05:56 PM   #8 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: TDC
Posts: 115
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by georg View Post
You must differentiate between J2ME development and BlackBerry development. The pure J2ME delete your storage if you uninstall your app while the BlackBerry generic storage persists if you don't take care of it.
that explains it... thx
Offline  
Old 09-12-2007, 07:02 PM   #9 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2007
Location: Delaware
Model: 8310
Carrier: AT&T
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, how can your application which uses the BlackBerry persistence, not RMS, take care of it if you uninstall it though the applications screen? I don't think there is an uninstall event that it can listen to... There must be a way..otherwise everyone will have orphan stores...
Offline  
Old 09-13-2007, 01:38 AM   #10 (permalink)
Thumbs Must Hurt
 
Rose's Avatar
 
Join Date: Nov 2006
Location: India
Model: 9700
OS: Windows 7
Carrier: Airtel
Posts: 121
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by georg View Post
You must differentiate between J2ME development and BlackBerry development. The pure J2ME delete your storage if you uninstall your app while the BlackBerry generic storage persists if you don't take care of it.
If your view is right means just think of a situation we installed 10 applications and all the 10 apps seems to use their own store. After some days i uninstall all the apps and install some new applications which also uses their own store.

If the previous stores are all alive means wont it cause any problems ?
Offline  
Old 09-13-2007, 02:39 AM   #11 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: TDC
Posts: 115
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Rose View Post
If your view is right means just think of a situation we installed 10 applications and all the 10 apps seems to use their own store. After some days i uninstall all the apps and install some new applications which also uses their own store.

If the previous stores are all alive means wont it cause any problems ?
that really depends on for what purpose you use ure stores.

If you want to get rid of your stores you can just run the destroy method on each store prior to installation
Offline  
Old 09-13-2007, 02:48 AM   #12 (permalink)
Thumbs Must Hurt
 
Rose's Avatar
 
Join Date: Nov 2006
Location: India
Model: 9700
OS: Windows 7
Carrier: Airtel
Posts: 121
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by genvej View Post
that really depends on for what purpose you use ure stores.

If you want to get rid of your stores you can just run the destroy method on each store prior to installation
Can you explain me in detail how we can delete all the stores in the device without their keys. Is there any way ?
Offline  
Old 09-13-2007, 08:52 AM   #13 (permalink)
Thumbs Must Hurt
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: TDC
Posts: 115
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Rose View Post
Can you explain me in detail how we can delete all the stores in the device without their keys. Is there any way ?
Nope... unless u nuke ur telephone from BEWS of course (HAVE IN MIND THAT YOU WILL LOOSE EVERYTHING EVER MADE ON THE PHONE!)

But you should have your key somewhere. Its the one that was used when you created the store
Offline  
Old 09-13-2007, 03:31 PM   #14 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2007
Location: Delaware
Model: 8310
Carrier: AT&T
Posts: 23
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would hate to have an application eat up all of my free space with their store (with a key that only they know!) and then when you delete the application, it remains there forever. That would suck!
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.