Android examples for java.util:Calendar
get Notification Calendar Date by hour and minute
//package com.java2s; import java.util.Calendar; public class Main { public static Calendar getNotificationCalendarDate(int hour, int minute) { Calendar currentCalendar = Calendar.getInstance(); currentCalendar.set(Calendar.HOUR_OF_DAY, hour); currentCalendar.set(Calendar.MINUTE, minute); return currentCalendar; }/*from ww w . j a v a 2 s. com*/ }