I refer this information.
I write the same program, but I can\'t get any log info when I click uninstall button .
I attach my code below. Have anyone know w
Generally when you are uninstalling the application, all the resources are removed from the device. so you can not trigger any action at the time of un-installing