title: Android get broadcast about the application installed or removed
body: <p>I want to develop an app that can receive broadcast about the other apps being installed or removed. So far, I tried the code below but, it only provides a broadcast event when an installation on deletion occurs, it does not provide info about  the other apps beibg installed or removed. So, is there a way to get the package name of the newly installed application. </p>
  
  <p>in manifset:</p>
  
  <pre><code>receiver android:name=".apps.AppListener"&gt;
      &lt;intent-filter android:priority="100"&gt;
           &lt;action android:name="android.intent.action.PACKAGE_INSTALL"/&gt;
           &lt;action android:name="android.intent.action.PACKAGE_ADDED"/&gt;  
           &lt;action android:name="android.intent.action.PACKAGE_REMOVED"/&gt;
           &lt;data android:scheme="package"/&gt; 
      &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>in AppListener:</p>
  
  <pre><code>public class AppListener extends BroadcastReceiver {
  
  @Override
  public void onReceive(Context context, Intent intent) {
        // there is a broadcast event here
        // but how to get the package name of the newly installed application 
        Log.v(TAG, "there is a broadcast");
      }
  }
  </code></pre>
  
  <p><strong>Addition:</strong> 
  This is deprecated for Api 14 or upper. </p>
  
  <pre><code>     &lt;action android:name="android.intent.action.PACKAGE_INSTALL"/&gt; 
  </code></pre>