title: Set Repeat days of week alarm in android
body: <p>Can somebody give good logic for set repeat days of week alarm? I have done weekly Alarm by using</p>
  <pre class="lang-java prettyprint-override"><code>alarmCalendar.set(Calendar.HOUR, AlarmHrsInInt);
  alarmCalendar.set(Calendar.MINUTE, AlarmMinsInInt);
  alarmCalendar.set(Calendar.SECOND, 0);
  alarmCalendar.set(Calendar.AM_PM, amorpm);
  
  Long alarmTime = alarmCalendar.getTimeInMillis();
  
  Intent intent = new Intent(Alarm.this, AlarmReciever.class);
  intent.putExtra(&quot;keyValue&quot;, key);
  PendingIntent pi = PendingIntent.getBroadcast(Alarm.this, key, intent, PendingIntent.FLAG_UPDATE_CURRENT);
  am.setRepeating(AlarmManager.RTC_WAKEUP, alarmTime, 7*1440*60000 , pi); 
  </code></pre>
  <p>The alarm trigger on time and after 7 days it automatically triggers at that time.</p>
  <p>But my requirement is I want to choose days rather than just 7 days.</p>
  <p>Something like every Monday, Tuesday, Thursday at 9:00 AM - Alarm should trigger automatically. How do I go about doing this in setRepeating?</p>
  <p>Can somebody help me out with this?</p>
  <p>Thanks!</p>