Set notification at specific time android
I realize this question has been asked before, but I'm at my wit's end with this one. I have an alarm manager to set up a notification: public void to_reminder(View view) { Intent intent=new Intent(this,Notification_morning.class); AlarmManager manager=(AlarmManager)getSystemService(Activity.ALARM_SERVICE); PendingIntent pendingIntent=PendingIntent.getService(this, 0,intent, 0); Calendar cal=Calendar.getInstance(); cal.set(Calendar.HOUR_OF_DAY, timepicker.getCurrentHour()); cal.set(Calendar.MINUTE,timepicker.getCurrentMinute()); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0);