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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
harsha973
Posts: 91
Registered: ‎05-31-2010
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

Please use plain text.
Regular Contributor
harsha973
Posts: 91
Registered: ‎05-31-2010
My Carrier: vodqafone

Re: Delete file folder in SDCard while uninstall

Hi All,

 

 This is an urgent requirement.Please help out.

 

 

Harsha

Please use plain text.
Developer
peter_strange
Posts: 17,942
Registered: ‎07-14-2008

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. 

Please use plain text.
Regular Contributor
harsha973
Posts: 91
Registered: ‎05-31-2010
My Carrier: vodqafone

Re: Delete file folder in SDCard while uninstall

Thank you very much for the reply.

 

i'll try out CodeModuleListener.

 

 

 

Harsha

Please use plain text.
New Member
deepakkumargoyal
Posts: 1
Registered: ‎01-20-2012
My Carrier: sprint

Re: Delete file folder in SDCard while uninstall

Harsha,

 

Did you try CodeModuleListener? Did it work out?

 

Regards,

-Deepak

 

Please use plain text.