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


37061 - IMPERIAL RAM MODULE -  picture

37061 - IMPERIAL RAM MODULE -

$205.00



RAM MODULE (COMES WITH WIRING HARDNESS) picture

RAM MODULE (COMES WITH WIRING HARDNESS)

$200.00



HP Engage One POS System 14

HP Engage One POS System 14" FHD Touch Celeron N6211 Intel UHD 4GB RAM 32GB eMMC

$449.99



Double Acting Hollow Ram Cylinder (60 Tons - 2

Double Acting Hollow Ram Cylinder (60 Tons - 2") (YG-6050KS)

$549.00



JLG 1684465 Lockout Ram Cylinder 1001168875 picture

JLG 1684465 Lockout Ram Cylinder 1001168875

$429.49



NCR 1924-0122-8801 KC4 Kitchen Controller 64GB HDD / 8GB RAM Win10 NEW IN BOX picture

NCR 1924-0122-8801 KC4 Kitchen Controller 64GB HDD / 8GB RAM Win10 NEW IN BOX

$401.53







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