Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.32 KB | None | 0 0
  1.  private void startAlarm(Calendar time, Calendar time2, Calendar time3, Calendar time4, Calendar time5) {
  2.         NotificationAlarm.SheduleNotification(getContext(), time,
  3.                 "Время кушать!)", "1", 101);
  4.         NotificationAlarm.SheduleNotification(getContext(), time2,
  5.                 "Время кушать!)", "2", 102);
  6.         NotificationAlarm.SheduleNotification(getContext(), time3,
  7.                 "Время кушать!)", "3", 103);
  8.         NotificationAlarm.SheduleNotification(getContext(), time4,
  9.                 "Время кушать!)", "4", 104);
  10.         NotificationAlarm.SheduleNotification(getContext(), time5,
  11.                 "Время кушать!)", "5", 105);
  12.         String sb = String.valueOf(time.get(Calendar.HOUR_OF_DAY)) + ":" + time.get(Calendar.MINUTE) + "," +
  13.                 time2.get(Calendar.HOUR_OF_DAY) + ":" + time2.get(Calendar.MINUTE) + "," +
  14.                 time3.get(Calendar.HOUR_OF_DAY) + ":" + time3.get(Calendar.MINUTE) + "," +
  15.                 time4.get(Calendar.HOUR_OF_DAY) + ":" + time4.get(Calendar.MINUTE) + "," +
  16.                 time5.get(Calendar.HOUR_OF_DAY) + ":" + time5.get(Calendar.MINUTE);
  17.         foodIntakeText.setText(sb);
  18.         Constant.saveToSharedPreference("FOOD_ALARM_TIME", sb, Objects.requireNonNull(getActivity()));
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement