title: BroadcastReceiver is not working
body: <p>I have implemented this broadcast reciever:</p>
  
  <pre><code>public class ServiceManager extends BroadcastReceiver {
      private final String BOOT_ACTION = "android.intent.action.BOOT_COMPLETED";
      private final String BOOT_ACTION_FIRST_LAUNCH = "android.intent.action.PACKAGE_FIRST_LAUNCH";
      private final String BOOT_ACTION_RESTARTED = "android.intent.action.PACKAGE_RESTARTED";
  
      @Override
      public void onReceive(Context context, Intent intent) {
          // All registered broadcasts are received by this
          String action = intent.getAction();
          if (action.equalsIgnoreCase(BOOT_ACTION) || action.equalsIgnoreCase(BOOT_ACTION_FIRST_LAUNCH) || 
                  action.equalsIgnoreCase(BOOT_ACTION_RESTARTED)) {
               // TODO: Action
          } 
      }
  
  }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;receiver android:name="package.service.ServiceManager" &gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
          &lt;action android:name="android.intent.action.PACKAGE_FIRST_LAUNCH" /&gt;
          &lt;action android:name="android.intent.action.PACKAGE_RESTARTED" /&gt;
      &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>The BOOT_COMPLETED action is working right, but, the PACKAGE_FIRST_LAUNCH and PACKAGE_RESTARTED are not working. I need to launch my broadcast receiver when I launch my app, that's why I'm using these actions. But, when I launch or restart the app, the receiver is not working. It only works when I restart my mobile phone. Are there something wrong in my source? </p>