title: Android application install/uninstall event
body: <p>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...</p>
  
  <p>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.</p>
  
  <p>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?</p>
  
  <p>Thanks!</p>