title: Restart app on PACKAGE_REPLACED not working
body: <p>I want my app to restart automatically after update.
  Following is my manifest and broadcast receiver code: </p>
  
  <pre><code>...
      &lt;receiver
          android:name="app.com.blynq.services.BootReceiver"
          android:theme="@android:style/Theme.Holo.Light.NoActionBar.Fullscreen"
          android:permission="android.permission.RECEIVE_BOOT_COMPLETED"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.SCREEN_ON" /&gt;
              &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.PACKAGE_REPLACED" /&gt;
              &lt;data android:scheme="package" android:path="app.com.blynq.player" /&gt;
          &lt;/intent-filter&gt;
      &lt;/receiver&gt;
  ...
  </code></pre>
  
  <p>Service: </p>
  
  <pre><code>public class BootReceiver extends BroadcastReceiver {
  
  @Override
  public void onReceive(Context context, Intent intent) {
      String intentActionString = intent.getAction();
      if ("android.intent.action.BOOT_COMPLETED".equals(intentActionString) || "android.intent.action.PACKAGE_REPLACED".equals(intentActionString)) {
          Intent pushIntent = new Intent(context, RegisterActivity.class);
          pushIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
          context.startActivity(pushIntent);
      }
  }
  </code></pre>
  
  <p>What am I missing here ?</p>