BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 01-28-2011, 02:29 AM   #1 (permalink)
New Member
 
Join Date: Jul 2010
Model: 7100T
PIN: N/A
Carrier: Mobilink
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question Removing data from SDCard on uninstallation

Please Login to Remove!

Hi,

I am trying to remove data from SDCard, that my application created, when my application is uninstalled. I came across CodeListener API and tried a small sample code (PFA) but it didn't work, i searched each and every forum but all say that it is possible none say that he has done it, and there is neither any working sample in blackberry documentation. Please can anyone help.

thanks
Attached Files
File Type: txt UninstallationTest.txt (3.0 KB, 326 views)
Offline  
Old 01-29-2011, 03:15 PM   #2 (permalink)
BlackBerry Mensa
 
tsac's Avatar
 
Join Date: Mar 2005
Location: Others run out when we run in
Model: Z10
OS: Cheerios
PIN: No Pin just a Tack
Carrier: at&t
Posts: 9,922
Post Thanks: 119
Thanked 854 Times in 822 Posts
Default Re: Removing data from SDCard on uninstallation

Have you tried formating the card?
__________________
If someone helps, tell them by clicking the Thanks button


Z10 on BES
Z10 on BIS
Offline  
Old 01-31-2011, 02:13 AM   #3 (permalink)
New Member
 
Join Date: Jul 2010
Model: 7100T
PIN: N/A
Carrier: Mobilink
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Removing data from SDCard on uninstallation

Actually i want to know why event is not firing when i am uninstalling the app.
Offline  
Old 01-31-2011, 01:13 PM   #4 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default Re: Removing data from SDCard on uninstallation

This thread should probably be in the developer section. Also please read the sticky thread on posting code to the forum.

I can think of two potential reasons:

1) the application context (UninstallationTest) may not be valid when the application is uninstalled. It is a UiApplication, is it running when you do the uninstall?

2) According to the documentaion of CodeModuleManager.addListener() the Application parameter is the application who's thread will process the notifications sent to the listener. It is not stated, but it may be that the OS will not deliver a notification to an application thread for which it is in the process of deleting code.

A quick way to test would be to make a background/autostart application that listens for the events. Then delete some other application (your current example for instance), then the background application, and see what happens.
__________________
My other Blackberry is a PlayBook.
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

Similar Threads for: Removing data from SDCard on uninstallation
Thread Thread Starter Forum Replies Last Post
Writing data to a file in SDCard pavankumar Developer Forum 3 09-16-2010 08:20 AM
Showing continous streamed data on screen and refreshing the screen accordingly hemant.bobade Developer Forum 0 05-19-2009 07:53 AM
Sprint 8830: International Data - Central America > Panama - GPRS?? Jesse J General Legacy Device Discussion 18 08-14-2007 03:00 PM
RIM CEO cautious about unlimited wireless data plans Sterling General BlackBerry Discussion 4 06-07-2006 07:49 AM
BB as a Modem - Data usage - costs and the BES Tolan General BlackBerry Discussion 5 02-26-2006 10:28 AM

Parker ZB09 Solenoid Coil C
$29.0
Parker ZB09 Solenoid Coil  C pictureFesto MFH-3-M5 MFH3M5 Solenoid Valve
$19.0
Festo MFH-3-M5 MFH3M5 Solenoid Valve pictureASCO Red Hat Solenoid Valve 8210G095, 3/4" NPT, 120 Volt, N.C., 150 psi, 3UL19
$100.0
ASCO Red Hat Solenoid Valve 8210G095, 3/41Pcs New SMC solenoid valve VQ4100Y-5BW
$269.0
1Pcs New SMC solenoid valve VQ4100Y-5BW pictureLot 3pcs. Humphrey H110-4E1 H1104E1 Solenoid Valve
$23.0
Lot 3pcs. Humphrey H110-4E1 H1104E1 Solenoid Valve picture






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