title: android notification weekly
body: <p>I try to set up an Android App. This have to notificate me every week Friday at 15.00 / 3.00 pm o'clock. To set up the notification every day at this time was no problem, but even not on the specific day and time.</p>
  
  <p>I hope you find my mistake and can give me some hints. Here my code:</p>
  
  <pre><code>private void alarmMethod(){
      Intent myIntent = new Intent(this , NotifyService.class);
      AlarmManager alarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);
      pendingIntent = PendingIntent.getService(this, 0, myIntent, 0);
  
      Calendar calendar = Calendar.getInstance();
      calendar.set(Calendar.SECOND, 0);
      calendar.set(Calendar.MINUTE, 0);
      calendar.set(Calendar.HOUR, 3);
      calendar.set(Calendar.AM_PM, Calendar.PM);
      calendar.add(Calendar.DAY_OF_MONTH, 1);
      calendar.set(Calendar.DAY_OF_WEEK, 6);
  
      alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), 1000 * 60 * 60 * 24, pendingIntent);
  </code></pre>
  
  <p>Thanks in regards</p>
  
  <p>Tim</p>