title: PACKAGE_REMOVED & then PACKAGE_ADDED are fired along with PACKAGE_REPLACED Intent Action
body: <p>All I am trying to do is update my list on each Install &amp; Uninstall but <strong>not</strong> on Package Replace .So the main problem is that Install &amp; Uninstall intents are launched on each Replace action.</p>
  
  <p>So 
  For this I have implemented a BroadcastReciever as below </p>
  
  <pre><code>&lt;receiver android:name =".IntentReceiverTest.AppReciever"&gt;
    &lt;intent-filter&gt;
           &lt;action android:name="android.intent.action.PACKAGE_REMOVED"/&gt;
           &lt;action android:name="android.intent.action.PACKAGE_REPLACED"/&gt;
           &lt;action android:name="android.intent.action.PACKAGE_ADDED"/&gt;
           &lt;data android:scheme="package"/&gt; 
    &lt;/intent-filter&gt;
  &lt;/receiver&gt; 
  </code></pre>
  
  <p>On each Replace I get 3 broadcasts with actions</p>
  
  <ul>
  <li>First with <strong>PACKAGE_REMOVED</strong> which fires AppReciever</li>
  <li>then after <strong>PACKAGE_ADDED</strong> which again fires AppReciever</li>
  <li>And then after few seconds <strong>PACKAGE_REPLACED</strong> which again fires AppReciever</li>
  </ul>
  
  <p>So please suggest any better way to catch only Replace Action </p>
  
  <p>Or </p>
  
  <p>a way to <strong>stop previously launched Services due to PACKAGE_REMOVED and PACKAGE_ADDED</strong> action.</p>