Search code examples
javablackberryjava-meblackberry-jde

How to remove all file when app is removed by user?


I have blackberry app (java). My app stores some informations in files (file:///store/home/user/app_name/). When user removes app, these files don't delete. I want to delete files when app is removed by user. What is solution?


Solution

  • Don't store files this way - use Persistable for your app data instead: http://docs.blackberry.com/en/developers/deliverables/17952/Storing_objects_persistently_1219782_11.jsp