android Detect when an application is installing, pause installation and prompt an alert box
<p>is it possible to run a broadcast receiver to <strong>detect, pause installing and alert</strong> when an application is installing.</p>

<p><strong>onRecive</strong></p>

<pre><code>public class Receiver extends BroadcastReciver{
public void onReceive(Context context, Intent intent ){

    if(intent.getAction().equals("android.intent.action.PACKAGE_INSTALL")){

    //i want to pause the installing activity and prompt an alert box
}
    }
}
</code></pre>

<p>Purpose would be, when an application is going to install, it ask are you really want to install this application.</p>

<p>After doing a lot of R &amp; D I'm really stuck with a solution for this, if u please can help me out with this, thank you a lot.</p>

<p>This is possible according to <a href="http://www.patrickmcdaniel.org/pubs/ccs09a.pdf" rel="nofollow">this research</a> paper. Look page 2 Figure 1.</p>
