Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void startAlarm(Calendar time, Calendar time2, Calendar time3, Calendar time4, Calendar time5) {
- NotificationAlarm.SheduleNotification(getContext(), time,
- "Время кушать!)", "1", 101);
- NotificationAlarm.SheduleNotification(getContext(), time2,
- "Время кушать!)", "2", 102);
- NotificationAlarm.SheduleNotification(getContext(), time3,
- "Время кушать!)", "3", 103);
- NotificationAlarm.SheduleNotification(getContext(), time4,
- "Время кушать!)", "4", 104);
- NotificationAlarm.SheduleNotification(getContext(), time5,
- "Время кушать!)", "5", 105);
- String sb = String.valueOf(time.get(Calendar.HOUR_OF_DAY)) + ":" + time.get(Calendar.MINUTE) + "," +
- time2.get(Calendar.HOUR_OF_DAY) + ":" + time2.get(Calendar.MINUTE) + "," +
- time3.get(Calendar.HOUR_OF_DAY) + ":" + time3.get(Calendar.MINUTE) + "," +
- time4.get(Calendar.HOUR_OF_DAY) + ":" + time4.get(Calendar.MINUTE) + "," +
- time5.get(Calendar.HOUR_OF_DAY) + ":" + time5.get(Calendar.MINUTE);
- foodIntakeText.setText(sb);
- Constant.saveToSharedPreference("FOOD_ALARM_TIME", sb, Objects.requireNonNull(getActivity()));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement