title: Android After Reboot Broadcast Receiver is not running
body: <p>I used this permission: </p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /&gt;
  </code></pre>
  
  <p>and the receiver is:</p>
  
  <pre><code>&lt;receiver android:name=".auth.NotificationBroadcast" android:enabled="true" &gt;
      &lt;intent-filter&gt;
          &lt;action android:name="android.intent.action.BOOT_COMPLETED" /&gt;
      &lt;/intent-filter&gt;
  &lt;/receiver&gt;
  </code></pre>
  
  <p>and receiver in code is:</p>
  
  <pre><code>@Override
      public void onReceive(Context context, Intent intent) {
  
          System.out.println("BroadcastReceiverBroadcast--------------------ReceiverBroadcastReceiverBroadcastReceiver----------------BroadcastReceiver");
  
          if (intent != null) {
              String action = intent.getAction();
  
          switch (action) {
              case Intent.ACTION_BOOT_COMPLETED:
                  System.out.println("Called on REBOOT");
                  // start a new service and repeat using alarm manager
  
                  break;
              default:
                  break;
          }
      }
  }
  </code></pre>
  
  <p>After reboot it's still not getting called in lollipop, but on marshmallow it's running.</p>