Question

In my Blackberry app I'm persisting data in a folder called "mydata" in the user folder in device memory. Is it somehow possible to delete this folder, when the user uninstalls my app? As I'm switching to a database persistence soon, I want to ask the same question for DB persistence (allthough it is mainly the same, since both are stored in file system).

I only found this Delete Persistent Object when app is Deleted in Blackberry But it is about persistent store.

Was it helpful?

Solution

You can use CodeModuleListener which is a listener used to receive notifications regarding the addition, modification, or deletion of code modules on the device.

One way you could do it is to have another app which monitors when the app in question is being deleted. You can monitor it using CodeModuleListener. When it detects a deletion, it can delete the folders in the device memory.

This wouldnt work if the user deletes the monitoring app first.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top