BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 11-28-2007, 06: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, 06: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, 06: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, 04: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

Digital XL-830L Electric LCD Multimeter Voltmeter Ammeter AC/DC/OHM Volt Black
$0.01
Digital XL-830L Electric LCD Multimeter Voltmeter Ammeter AC/DC/OHM Volt Black pictureD52-2048 Digital Current Voltage Power Ammeter Voltmeter Meter Home Tester
$9.58
D52-2048 Digital Current Voltage Power Ammeter Voltmeter Meter Home Tester pictureAnnie Model A-12 Hermetic Analyzer - Ammeter - Voltmeter - Ohmmeter - Very Nice
$79.95
Annie Model A-12 Hermetic Analyzer - Ammeter - Voltmeter - Ohmmeter - Very Nice pictureVINTAGE AC AMMETER YEW YOKOGAWA ELECTRIC WORKS JAPAN HAM CASE
$26.0
VINTAGE AC AMMETER YEW YOKOGAWA ELECTRIC WORKS JAPAN HAM CASE pictureGE AC AMMETER AMPERES 0-600 PANEL METER TYPE 8AB 18A8AL1 4" DIAMETER 3691485
$50.0
GE AC AMMETER AMPERES 0-600 PANEL METER TYPE 8AB 18A8AL1 4






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