public class AlarmService
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private android.app.PendingIntent |
alarmSender |
private android.content.Context |
context |
| Constructor and Description |
|---|
AlarmService(android.content.Context context,
java.lang.String holidayName)
Service to schedule alerting user
of day's holiday via a notification at
a given time.
|
| Modifier and Type | Method and Description |
|---|---|
void |
startAlarm()
Starts the alarm.
|
private android.app.PendingIntent alarmSender
private android.content.Context context
public AlarmService(android.content.Context context,
java.lang.String holidayName)
context - the context.holidayName - the name of the holiday
to display in the notification.