title: Pushing a Notification at specific time
body: <p>I have an app that works as a Task Manager.. The user adds tasks and the app notifies him/her at the time he entered.. That works fine when I add just one task.. But when I add two tasks, The first one doesn't notify and the second one notifies with the data of the first one.. 
  Example.. I add the first task with title of Task1 and the description of Desc1 On 11:05, And I add the second task with the title of Task2 and the description of Desc2 On 11:07.. On 11:05 Nothing happens.. But On 11:07 I get notification with Title of Task1 and description Desc1.. 
  I have a custom class for Task..</p>
  
  <pre><code>public class Task {
  
  String name,desc;
  Date date;
  Context context;
  
  public Task(String name, String desc, Date date, Context context) {
      this.name = name;
      this.desc = desc;
      this.date = date;
      this.context = context;
  
      startAlarm(date.getTime(), name, desc);
  }
  
  public String toString() {
      return name + " : " + desc + " at " + date;
  }
  
  public void startAlarm(long when, String title, String descreption) {
      AlarmManager alarmManager = (AlarmManager) context
              .getSystemService(MainActivity.ALARM_SERVICE);
  
      Intent intent = new Intent(context, BGService.class);
      intent.putExtra("title", title);
      intent.putExtra("descreption", descreption);
  
      PendingIntent pendIntent = PendingIntent.getService(context,
              0, intent, 0);
      alarmManager.set(AlarmManager.RTC, when, pendIntent);
  }
  //// Getters And Setters Here .... 
  </code></pre>
  
  <p>}</p>
  
  <p>the startAlarm method should be called whenever I create new Task.. It starts an alarm which ends at the time of the notification and the notification is shown.. </p>
  
  <p>But now just the last task is shown.. Why is that ? :S</p>
  
  <p>Thanks :)</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I fixed It by following this answer:</p>
  
  <p><a href="https://stackoverflow.com/questions/7252623/how-to-set-more-than-one-alarms-at-a-time-in-android">How to set more than one alarms at a time in android?</a></p>