get Notification Calendar Next Date - Android java.util

Android examples for java.util:Calendar

Description

get Notification Calendar Next Date

Demo Code


//package com.java2s;

import java.util.Calendar;

public class Main {
    public static Calendar getNotificationCalendarNextDate(int hour,
            int minute) {
        Calendar currentCalendar = Calendar.getInstance();
        currentCalendar.add(Calendar.DATE, 1);
        currentCalendar.set(Calendar.HOUR_OF_DAY, hour);
        currentCalendar.set(Calendar.MINUTE, minute);
        return currentCalendar;

    }//  w w  w . jav a 2s .c om
}

Related Tutorials