Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.app.AlarmManager;
import android.app.PendingIntent;

import java.util.Calendar;

public class Main {
    private static void setAlarm(AlarmManager alarmManager, Calendar calendar, PendingIntent pendingIntent) {
        alarmManager.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY,
                pendingIntent);
    }
}