title: Android Notification Action PendingIntent.getBroadCast does not work
body: <p>My Android notification Action buttons are not working at all. I have the following code in my service, and the receiver is <strong>NOT</strong> registered in the manifest because it makes no change. I can send the broadcast from another activity, and it works great, but there is a problem somewhere. </p>
  
  <p>Here are the PendingIntents that pair with the buttons   </p>
  
  <pre><code>    Intent next = new Intent(getString(R.string.receiver_notification_media_change));
      next.setAction(NOTIFICATION_MEDIA_CHANGE_NEXT);
      PendingIntent pendingIntentNext = PendingIntent.getBroadcast(getApplicationContext(), 0, next, PendingIntent.FLAG_UPDATE_CURRENT);
  
      Intent last = new Intent(getString(R.string.receiver_notification_media_change));
      last.setAction(NOTIFICATION_MEDIA_CHANGE_BACK);
      PendingIntent pendingIntentLast = PendingIntent.getBroadcast(getApplicationContext(), 0, last, PendingIntent.FLAG_UPDATE_CURRENT);
  </code></pre>
  
  <p>Notification:</p>
  
  <pre><code>Notification.Builder mBuilder = new Notification.Builder(getApplicationContext())
                  .setVisibility(Notification.VISIBILITY_PUBLIC)
                  .setSmallIcon(smallDrawableResId)
                  .addAction(R.drawable.icon1, "as", pendingIntentLast)
                  .addAction(R.drawable.icon2, "asdf", pendingIntentNext)
                  .setContentTitle(title)
                  .setContentText("title")
                  .setLargeIcon(icon)
                  .setContentIntent(pendingIntent) //to an activity. Works great
                  .setOngoing(true)
                  .setStyle(new Notification.MediaStyle()
                          .setShowActionsInCompactView(0, 1));
  </code></pre>
  
  <p>Here is the BroadcastReceiver which is declared in the class below.</p>
  
  <pre><code>private BroadcastReceiver notificationMediaChanger = new BroadcastReceiver()
  {
      @Override
      public void onReceive(Context context, Intent intent)
      {
          String action = intent.getAction();
  
          System.out.println("RECEIVEDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
  
          if(action.equals(NOTIFICATION_MEDIA_CHANGE_NEXT))
              playNextSong();
          else if(action.equals(NOTIFICATION_MEDIA_CHANGE_BACK))
              playPreviousSong();
      }
  };
  </code></pre>
  
  <p>OnCreate the receiver is registered</p>
  
  <pre><code>        registerReceiver(notificationMediaChanger, new IntentFilter(getString(R.string.receiver_notification_media_change))); //LocalBroadcastManager.getInstance(getApplicationContext()) appears to be equivalent.
  </code></pre>
  
  <p>And OnStop it is removed:</p>
  
  <pre><code>        unregisterReceiver(notificationMediaChanger);
  </code></pre>