title: How do I setup AlarmManager for different days?
body: <p>I have almost finished a little alarm application in Android, it works fine, however, right now it only works to setup an alarm only for one day, but the design has been made to select different days, for example (monday, wednesday, friday). This is the way I setup the alarm:</p>
  
  <pre><code>Calendar cal = Calendar.getInstance();
  
  //tPicker is a TimePicker
  cal.set(Calendar.HOUR_OF_DAY, tPicker.getCurrentHour());
  cal.set(Calendar.MINUTE, tPicker.getCurrentMinute());
  cal.set(Calendar.SECOND, 0);
  cal.set(Calendar.MILLISECOND, 0);   
  
  AlarmManager alarmMgr = (AlarmManager)getSystemService(Context.ALARM_SERVICE);
  alarmMgr.set(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), pIntent(this));
  
  //pIntent method
  public static PendingIntent pIntent(Context context){
  Intent intent = new Intent();
  intent.setAction("myAlarm.intent.action.CLOCK");
  
  return PendingIntent.getBroadcast(context, 0, intent,    PendingIntent.FLAG_UPDATE_CURRENT);
  }
  </code></pre>
  
  <p>It works great as I said, but I don't know how to setup an alarm for each day I select in the application, I would appreciate your help, thank you!</p>