title: Android alarmmanager set alarms in specific days and repeat them all the weeks
body: <p>i making a app where you can set alarms . it actually works but just one time.
  and i need to do more than once .im trying to do an class schedule alarms.</p>
  
  <p>for example i have class mondays at seven , so i need to start the alarm every monday. but also i have another class tuesday and have to do it the same.</p>
  
  <p>here is my code that works   pd-> rqs1 = 1</p>
  
  <pre><code>Calendar cal = Calendar.getInstance();
          cal.setTimeInMillis(System.currentTimeMillis());
          cal.set(Calendar.HOUR_OF_DAY, horai); // i put the hour with the interface
          cal.set(Calendar.MINUTE,minutoi);///
         cal.set(Calendar.DAY_OF_WEEK,dias.getSelectedItemPosition()+1);
          cal.add(Calendar.SECOND, 2);
  
  
  
          Intent intent = new Intent(getBaseContext(), AlarmReceiver.class);
          intent.putExtra("name", curso); // i put the name of the curso
        PendingIntent pendingIntent =
                 PendingIntent.getBroadcast(getBaseContext(),
                        RQS_1, intent, PendingIntent.FLAG_ONE_SHOT);
  
  
      AlarmManager alarmManager =
              (AlarmManager)getSystemService(Context.ALARM_SERVICE);
  
  
      alarmManager.setRepeating(AlarmManager.RTC_WAKEUP,
              cal.getTimeInMillis(), 24 * 7 * 60 * 60 * 1000 , pendingIntent);`
  </code></pre>
  
  <p>so, i have been looking how to do it.
  please help me . Thanks</p>