title: How to know that an app is going to be uninstalled in android?
body: <p>I want to implement something like AppLock application is doing.<br>
  If in its settings it is set to lock applications uninstall/install, then while uninstalling any app (precisely on clicking the <b>Uninstall</b> button) a lock screen comes which asks for a password/pattern.<br>
  Only after entering the password user is allowed to uninstall the app.</p>
  
  <p>What's that intent(or anything, I assume it to be an intent but not sure) that one get when <b>Uninstall button</b> is clicked?<br><br>Also <b>I dont want to make it device admin, as the app I mentioned does require to be device admin.</b><br>If they can do it, then there is some way.
  Please help.</p>