what is android Alarm Service?
AlarmService - it helps to execute your activity/service at perticular time.
It is a system service, which can be accessed using AlarmManager class.
Time to execute your code can be set for more than 1 minute.
If the time is Fixed datetime like 2nd Sept 2017,5:30am, Then it is known as real time clock alarm.
If the time is relative to current time like after 2 minute, or after 1 hour. then it is know as elapsed real time alarm.
An intent object is required to be passed to AlarmManager along with timeToExecute to schedule for execution.
PendingIndent is used to represent the intent which execute later on at some other time.
It is a system service, which can be accessed using AlarmManager class.
Time to execute your code can be set for more than 1 minute.
If the time is Fixed datetime like 2nd Sept 2017,5:30am, Then it is known as real time clock alarm.
If the time is relative to current time like after 2 minute, or after 1 hour. then it is know as elapsed real time alarm.
An intent object is required to be passed to AlarmManager along with timeToExecute to schedule for execution.
PendingIndent is used to represent the intent which execute later on at some other time.
Comments
Post a Comment