Java tutorial
//package com.java2s; import android.annotation.TargetApi; import android.app.AlarmManager; import android.app.PendingIntent; public class Main { @TargetApi(value = 19) private static void setAlarmAfter19(AlarmManager am, long timestamp, PendingIntent pendingIntent) { am.setExact(AlarmManager.RTC_WAKEUP, timestamp, pendingIntent); } }