BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 12-02-2008, 11:33 PM   #1
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question How to delete dependancies?

Please Login to Remove!

When I uninstall my blackberry application I wan to delete some of the files which I created for the application.. eg: log file..

How can I do this?
Offline  
Old 12-04-2008, 06:37 AM   #2
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question

???
Offline  
Old 12-08-2008, 07:46 AM   #3
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question

Strange !!!!
Offline  
Old 12-08-2008, 10:03 AM   #4
Dan East
Thumbs Must Hurt
 
Join Date: Apr 2008
Model: 8130
PIN: N/A
Carrier: US Cellular
Posts: 82
Default

I don't think this is possible. It is my understanding that the Blackberry installer cannot install any ancillary files (like configuration files, etc) - only the actual components of the application. It follows that the installer will not delete any files that are not components of the application. Otherwise you could create empty placeholder files that are installed, and would thus be removed when the application was uninstalled.

The proper method is to store persistent data in the object store, which is deleted when the COD file that created the persistent store is deleted.

http://na.blackberry.com/eng/deliver...nt%20guide.pdf
Offline  
Old 12-10-2008, 07:42 AM   #5
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Question

I dont want to store any data in the file.

Actually I am creating a log file, which should be deleted when I uninstall the application.

I am creating is file when I am starting the application for the first time.


plz help....
Offline  
Old 12-10-2008, 04:46 PM   #6
Dan East
Thumbs Must Hurt
 
Join Date: Apr 2008
Model: 8130
PIN: N/A
Carrier: US Cellular
Posts: 82
Default

Quote:
Originally Posted by arunk View Post
I dont want to store any data in the file.
So you are creating an empty file and not writing to it? There must be some point in creating the file - something must access it at some point, otherwise it shouldn't be created at all. So instead of reading and writing to that file you should read and write to the object store instead. That's the proper way if you want your application to be cleaned up at uninstall.
Offline  
Old 12-10-2008, 05:48 PM   #7
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

I always include a menu option "remove all files", which deletes any artifacts (files, menu items, etc) and performs an orderly shutdown.

Once the program ends it can then be safely removed.
Offline  
Old 01-02-2009, 01:02 AM   #8
arunk
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Default

Actually the file I am using is a logfile for my application. When The application gets uninstalled, I want that file also to be deleted from the device.
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


ORTEC NIM BIN 7 SLOT MAINFRAME CHASSIS   (ZIG7) picture

ORTEC NIM BIN 7 SLOT MAINFRAME CHASSIS (ZIG7)

$150.00



Tektronix 7904 Oscilloscope Mainframe  w/ 2x 7A26 2x 7B92A Modules picture

Tektronix 7904 Oscilloscope Mainframe w/ 2x 7A26 2x 7B92A Modules

$399.97



ILX Lightwave LDC3908 Laser Diode Controller Mainframe with Key picture

ILX Lightwave LDC3908 Laser Diode Controller Mainframe with Key

$480.00



Keithley 7001 Switch System Mainframe picture

Keithley 7001 Switch System Mainframe

$59.99



Chroma 6312 DC Electronic Load Mainframe  picture

Chroma 6312 DC Electronic Load Mainframe

$239.96



Fluke Networks Versiv Modular Mainframe AS IS picture

Fluke Networks Versiv Modular Mainframe AS IS

$1200.00







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