get Alarm Time After In Secs - Android Android OS

Android examples for Android OS:Alarm Information

Description

get Alarm Time After In Secs

Demo Code


//package com.java2s;

import java.util.Calendar;

public class Main {
    public static Calendar getTimeAfterInSecs(int secs) {
        Calendar cal = Calendar.getInstance();
        cal.add(Calendar.SECOND, secs);
        return cal;
    }//from w  ww  . j  a va2 s .c  o m
}

Related Tutorials