title: alarm manager setting selected day to repeat. Am I doing it the correct way?
body: <p>users select the days and the time they want the alarm to trigger. Lets say user selects Sunday , Monday and Wednesday and the time to be 23:10. I set the alarmManager.setRepeating the intervals to be 7 * 24 * 60 * 60 * 1000 which is 7 days. <strong>Am I doing it in the correct way?</strong></p>
  
  <pre><code>     Intent intent = new Intent(this, AlarmReceiver.class);
       PendingIntent pendingIntent = PendingIntent.getBroadcast(this.getApplicationContext(), 234324243, intent, 0);
  
      Calendar calendar = Calendar.getInstance();
  
      calendar.set(Calendar.DAY_OF_WEEK,getDay());
      calendar.set(Calendar.HOUR_OF_DAY, 23);
      calendar.set(Calendar.MINUTE, 10);
  
      AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
      alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),  7 * 24 * 60 * 60 * 1000, pendingIntent);
  </code></pre>