Java tutorial
//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); } }