01-31-2011, 01:13 PM
Join Date: Jan 2006
Carrier: Rogers CA
Post Thanks: 20
Thanked 77 Times in 68 Posts
| | Re: Removing data from SDCard on uninstallation
This thread should probably be in the developer section. Also please read the sticky thread on posting code to the forum.
I can think of two potential reasons:
1) the application context (UninstallationTest) may not be valid when the application is uninstalled. It is a UiApplication, is it running when you do the uninstall?
2) According to the documentaion of CodeModuleManager.addListener() the Application parameter is the application who's thread will process the notifications sent to the listener. It is not stated, but it may be that the OS will not deliver a notification to an application thread for which it is in the process of deleting code.
A quick way to test would be to make a background/autostart application that listens for the events. Then delete some other application (your current example for instance), then the background application, and see what happens.
My other Blackberry is a PlayBook.