08-25-2011 10:49 AM
Hi,
I've developed an app that or 1st launch copies sqlite database to the device memory card.
I also want to delete this database file in case the user uninstalls the app.
Is it possible ?
Thanks!
Solved! Go to Solution.
09-06-2011 04:28 PM
Hello guydor,
How are you doing? I hope all is well.
The only way for an app to do a cleanup is to actually have a second cleanup installed running in the background(COD file that is not part of the main CodeModuleGroup), which has a CodeModuleListener. If it detects the main app is deleted, it performs cleanup/removal of the db, and then deletes itself via CodeModuleManager.deleteModuleEx.
Let me know if you have any further questions.
11-09-2011 08:09 AM
Me also having this requirement and i couldnt get you, please bare with me if its silly
Will second cleanup comes built-in with the BlackBerry Device or we need to create a background app (COD) to perform the same.
Let me know if you need more information
11-09-2011 03:53 PM
Hello Sona,
How are you doing? I hope all is well.
In regards to your questions, I actually meant to create a seperate background application that had a CodeModuleListener listening to the modules via CodeModuleListener.modulesDeleted(modules). As soon as the modules are deleted, you can delete the associated app's dbs and then delete the background application using the CodeModuleManager.deleteModuleEx method.
Let me know if you have any questions and I will be more than happy to help you out.
11-10-2011 01:27 AM
rmasroor,
Thanks for your reply, will work on it and get back to you if i have any issuess