title: PendingIntent used with Broadcast Receiver not working
body: <p>I'm to register a BroadcastReceiver and passing it a id that I would like to display when the broadcast is received.  </p>
  
  <p>What i want to do is to access the database entries at a particular instance (ie when the alarm goes off)thats the reason i pass id through intent</p>
  
  <pre><code>View.OnClickListener saveHandler = new View.OnClickListener() {
  
      @Override
      public void onClick(View v) {
          Log.d("Insert: ", "Inserting ..");
  
          mContext = getApplicationContext();
          objalarmManger = (AlarmManager) getSystemService(ALARM_SERVICE);
  
          Intent broadcastIntent = new Intent(mContext,
                  MyBroadCastReceiver.class);
          broadcastIntent.putExtra("id",22);
          PendingIntent objPI = PendingIntent.getBroadcast(mContext, 0,
                  broadcastIntent, 0);
  
          Calendar objC = Calendar.getInstance();
          objC.set(yearData, monthData, dayData, hour, min);
          objalarmManger.set(AlarmManager.RTC_WAKEUP, objC.getTimeInMillis(),
                  objPI);
      }
  };
  </code></pre>
  
  <p>The Broadcast receiver code is</p>
  
  <pre><code>public class MyBroadCastReceiver extends BroadcastReceiver {
  
  @Override
  public void onReceive(Context arg0, Intent arg1) {
  
      int id = arg1.getIntExtra("id", 0);
  
      Toast.makeText(arg0, id, Toast.LENGTH_LONG).show();
      Log.d("Received", id + "");
  }
  </code></pre>
  
  <p>}</p>
  
  <p>I'm not able to see any log cat entiers,is there anything wrong in the code implementation.
  Any help would be appreciated :) </p>