title: How to make my app receive broadcast when other applications are installed or removed
body: <p>I want to make an app that can receive broadcast when other apps on the device are installed or removed. </p>
  
  <p>my code</p>
  
  <p>in manifset:</p>
  
  <pre><code>&lt;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;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>in AppListener:</p>
  
  <pre><code>import android.content.BroadcastReceiver;
  import android.content.Context;
  import android.content.Intent;
  import android.util.Log;
  
  public class AppListener extends BroadcastReceiver {
  
  @Override
  public void onReceive(Context context, Intent arg1) {
      // TODO Auto-generated method stub
      Log.v(TAG, "there is a broadcast");
      }
  }
  </code></pre>
  
  <p>but I can't receive any broadcast. I think this problem is due to app permissions, any idea?</p>
  
  <p>Thanks for helps.</p>