Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Trusted Contributor
Posts: 134
Registered: ‎05-31-2010
My Device: 8300
My Carrier: vodqafone

Delete file folder in SDCard while uninstall

Hi ,

 

  I'm saving some File data in my SDCard.I'm creating a folder in it.The problem is while uninstallation of the Application from device the folder on SDCard still remains.Is there any way to delete the folder while uninstallation of  Application.

 

Any suggestions.

 

Thanks & Regards,

Sree Harsha.P

Trusted Contributor
Posts: 134
Registered: ‎05-31-2010
My Device: 8300
My Carrier: vodqafone

Re: Delete file folder in SDCard while uninstall

Hi All,

 

 This is an urgent requirement.Please help out.

 

 

Harsha

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: Delete file folder in SDCard while uninstall

Look at CodeModuleListener.  As far as I know, this is the only supported API that attempts to notify an application on deletion. 

 

ANother alternative is to have a 'watching' app that notices when its watched app is removed - perhaps because the Persistent Data associated with the app is removed. 

Highlighted
Trusted Contributor
Posts: 134
Registered: ‎05-31-2010
My Device: 8300
My Carrier: vodqafone

Re: Delete file folder in SDCard while uninstall

Thank you very much for the reply.

 

i'll try out CodeModuleListener.

 

 

 

Harsha

New Member
Posts: 1
Registered: ‎01-20-2012
My Device: curve
My Carrier: sprint

Re: Delete file folder in SDCard while uninstall

Harsha,

 

Did you try CodeModuleListener? Did it work out?

 

Regards,

-Deepak