title: How to send a Notification at a specific time?
body: <p>I would like to send a notification at a specific time. Below is my code. Right now, I only get a notification when I start the app, but I do not get a notification at the specified time. Could you help me understand what I am doing wrong.</p>
  
  <pre><code> NotificationCompat.Builder mBuilder =
              new NotificationCompat.Builder(this)
              .setSmallIcon(R.drawable.ic_launcher)
              .setContentTitle("My notification")
              .setContentText("Trainieren sie jetzt!")
              .setAutoCancel(true);
      Intent resultIntent = new Intent(this, MainActivity2.class);
  
      AlarmManager alarmManager =(AlarmManager)getSystemService(ALARM_SERVICE);
  
  
  
      PendingIntent resultPendingIntent =
          PendingIntent.getActivity(
          this,
          0,
          resultIntent,
          PendingIntent.FLAG_UPDATE_CURRENT);
  
  
     Calendar cal = Calendar.getInstance();
     cal.set(Calendar.HOUR_OF_DAY, 12);
     cal.set(Calendar.MINUTE, 54);
     alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, cal.getTimeInMillis(), 24*60*60*1000, resultPendingIntent);
  
  
  
      mBuilder.setContentIntent(resultPendingIntent);
      int mNotificationId = 001;
      NotificationManager mNotifyMgr = 
              (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
      mNotifyMgr.notify(mNotificationId, mBuilder.build());
  </code></pre>
  
  <p>Thanks for helping!</p>