There is an application and it needs system reboot after installation. I registrered boot receiver and write info to system log. And activity checks for this line. It works well, but there is one problem…
When user uninstall and install this app in one session(I mean user doesn’t reboot phone) system log still has line “Phone restarted” and application runs with errors.
As I know I can’t check uninstallation event on my app cause receiver stops before the application going to uninstall. So my question is could I check for my app installation? or maybe uninstallation any other way?
Thanks!
Maybe someone will be interested. I found the code that allows me to checked system reboot after installation/update: