get Notification Calendar Date by hour and minute - Android java.util

Android examples for java.util:Calendar

Description

get Notification Calendar Date by hour and minute

Demo Code


//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*/
}

Related Tutorials