title: How to send data through PendingIntent to Broadcast?
body: <p>I'm trying to send via <code>PendingIntent</code> some extra data, like:</p>
  
  <pre><code>MyMessage message;
  //...
  Intent intent;
  SmsManager sms = SmsManager.getDefault();
  intent = new Intent(Constants.SENT_PLAIN);
  intent.putExtra(Constants.EXTRA_RAW_ID, message.getId()); //putting long id (not -1L)
  PendingIntent sentPI = PendingIntent.getBroadcast(activity, 0, intent, 0);
  intent = new Intent(Constants.DELIVERED_PLAIN);
  intent.putExtra(Constants.EXTRA_RAW_ID, message.getId());
  PendingIntent deliveredPI = PendingIntent.getBroadcast(activity, 0, intent, 0);
  sms.sendTextMessage(phoneNumber, null, message.getBody(), sentPI, deliveredPI);
  </code></pre>
  
  <p>Then in <code>Broadcast</code> trying to catch data:</p>
  
  <pre><code>@Override
  public void onReceive(Context context, Intent intent) {
      String message, prefix = "";
      String action = intent.getAction();
      long id = intent.getLongExtra(Constants.EXTRA_RAW_ID, -1L);  //here I receive id=-1
  
      // blah-blah.... 
  }
  </code></pre>
  
  <p>I see that <code>Broadcast</code> <code>onReceive()</code> called - which means that <code>Broadcast</code> registered in a proper way, but still extras are empty.</p>
  
  <p>Any ideas?</p>