Android Notification App
<p>Im currently working on a android application.. I have to log the new installed app name whenever user is installing/downloading new third party app. How can i get the notification if user is installing new app. Thanks in advance</p>

<h2>Java File</h2>

<p>public class ApplicationBroadcastService extends BroadcastReceiver {</p>

<pre><code>  public void onReceive(Context context, Intent intent) {
        System.out.print("-------");
  }
</code></pre>

<p>}</p>

<h2>Mainfest</h2>

<pre><code>    &lt;receiver android:name=".applicationlog.ApplicationBroadcastService"&gt;
        &lt;intent-filter&gt;
            &lt;action android:name="android.intent.action.PACKAGE_ADDED"  /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_CHANGED" /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_INSTALL" /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_REMOVED" /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_REPLACED" /&gt;
        &lt;/intent-filter&gt;
     &lt;/receiver&gt;
</code></pre>

<p>but still i am not get in the onReceive method. when i am installing/uninstalling any app.</p>

<p>Here is the solution:</p>

<p>i done small change in my Manifest file.</p>

<pre><code>    &lt;intent-filter&gt;
            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_ADDED"  /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_CHANGED" /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_INSTALL" /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_REMOVED" /&gt;
            &lt;action android:name="android.intent.action.PACKAGE_REPLACED" /&gt;
            &lt;data android:scheme="package" /&gt;
        &lt;/intent-filter&gt;
</code></pre>

<p>now it's working fine.. :)
Thanks again @willytate</p>
