date and time not working in Alarm Manager
问题 I'm having trouble working with the AlarmManager . I want to run AlarmManager using Calendar at a specific time. But the calendar doesn't work and AlarmManager always runs regardless of the time taken from the calendar. AlarmManager mAlarmManger = (AlarmManager) Objects.requireNonNull(activity).getSystemService(view.getContext().ALARM_SERVICE); Intent intent = new Intent(activity, MyReceiver.class); PendingIntent pendingIntent = PendingIntent.getBroadcast(activity, 0, intent, PendingIntent