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

4 IBM Selectric II 2 Typewriter Elements Balls NEW OEM SEALED
$80.0
4 IBM Selectric II 2 Typewriter Elements Balls NEW OEM SEALED pictureOEM CPU FAN & HEATSINK 14R0011 TSQC0039003--IBM SURE POS 4840-563 TOUCH SCREEN
$3.99
OEM CPU FAN & HEATSINK 14R0011 TSQC0039003--IBM SURE POS 4840-563 TOUCH SCREEN pictureTwo Ribbons & 1 Lift-off tapes 1 IBM Genuine OEM Wheelwriter Typewriter 1380999
$58.87
Two Ribbons & 1 Lift-off tapes 1 IBM Genuine OEM Wheelwriter Typewriter 1380999 pictureOEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998
$27.0
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 46N1999 46N1998 pictureOEM IBM Wheelwriter 5 Part: Paper Release Lever & Bellcrank
$1.99
OEM  IBM  Wheelwriter 5 Part:  Paper Release Lever & Bellcrank picture






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