BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 12-02-2008, 10:33 PM   #1 (permalink)
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 05:37 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question

???
Offline  
Old 12-08-2008, 06:46 AM   #3 (permalink)
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question

Strange !!!!
Offline  
Old 12-08-2008, 09:03 AM   #4 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Model: 8130
PIN: N/A
Carrier: US Cellular
Posts: 82
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 06:42 AM   #5 (permalink)
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 03:46 PM   #6 (permalink)
Thumbs Must Hurt
 
Join Date: Apr 2008
Model: 8130
PIN: N/A
Carrier: US Cellular
Posts: 82
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 04:48 PM   #7 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
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, 12:02 AM   #8 (permalink)
Talking BlackBerry Encyclopedia
 
arunk's Avatar
 
Join Date: Mar 2008
Model: 8310
PIN: N/A
Carrier: Airtel
Posts: 229
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


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.