BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 11-28-2007, 05:37 PM   #1 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Catch Application Uninstall Event?

Please Login to Remove!

Seems there should be a way to do this, but I haven't seen anything yet...

Is there a way for an application to be notified when it's about to be uninstalled? Would want to do this to perform some last-minute cleanup, such as RMS stores, etc. TIA.
Offline  
Old 11-28-2007, 05:41 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

afaik the device handles cleaning the RMS for you when you uninstall by removing associative stores to the app keys
Offline  
Old 11-28-2007, 05:56 PM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply.

The AMS will remove PersistentStore stores if they've been associated with an app package, but not for RMS. I migrated from RMS to PersistentStore for this reason.

In any event, the idea of an uninstall hook has been on my mind so I thought I'd throw the question out there in case anyone knows.
Offline  
Old 01-09-2008, 03:17 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, but what happened when i have an application that uses a storage/database that is xml file on the SD card. How can i delete this file when the application is to be deleted?
Offline  
Old 07-11-2008, 08:46 AM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 9000
PIN: N/A
Carrier: Rogers
Posts: 36
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wirelessly posted

Did anyone find a way to do this? After a brief search in the APIs, I came up empty-handed. I would've thought this existed, however.

M
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.