List of utility methods to do Alarm Create
void | setAlarm(Context context, Calendar calendar, PendingIntent pIntent) set Alarm AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { alarmManager.setExact(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); } else { alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); ... |
void | setAlarm(Context context, Calendar calendar, PendingIntent pIntent) set Alarm AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { alarmManager.setExact(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); } else { alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); ... |
void | setAlarm(Context context, Calendar calendar, PendingIntent pIntent) set Alarm AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { alarmManager.setExact(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); } else { alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); ... |
void | setAlarm(Context context, Calendar alarmDate, PendingIntent pIntent) set Alarm AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { alarmManager.setExact(AlarmManager.RTC_WAKEUP, alarmDate.getTimeInMillis(), pIntent); } else { alarmManager.set(AlarmManager.RTC_WAKEUP, alarmDate.getTimeInMillis(), pIntent); ... |
void | setAlarm(Context context, Calendar calendar, PendingIntent pIntent) set Alarm AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { alarmManager.setExact(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); } else { alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); ... |
void | setPendingAndroidAlarm(Context context, Calendar calendar, PendingIntent pIntent) helper method that schedules a pending alarm intent over android's AlarmManager AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { alarmManager.setExact(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); } else { alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); ... |
void | setAlarm(Context context, Calendar calendar, PendingIntent pIntent) set Alarm AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) { alarmManager.setExact(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); } else { alarmManager.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), pIntent); ... |
void | setupAlarmManager(Context context, long minutesInMillis, PendingIntent pendingIntent) setup Alarm Manager AlarmManager alarmManager = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); alarmManager .set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() + minutesInMillis, pendingIntent); |
void | setExact(AlarmManager alarmManger, int type, long triggerAtMillis, PendingIntent operation) Schedule an alarm to be delivered precisely at the stated time. if (Build.VERSION.SDK_INT >= 19) { alarmManger.setExact(type, triggerAtMillis, operation); } else { alarmManger.set(type, triggerAtMillis, operation); |
void | setExact(AlarmManager alarmManger, int type, long triggerAtMillis, PendingIntent operation) Schedule an alarm to be delivered precisely at the stated time. if (Build.VERSION.SDK_INT >= 19) { alarmManger.setExact(type, triggerAtMillis, operation); } else { alarmManger.set(type, triggerAtMillis, operation); |