1.void set (int type, long triggerattime, pendingintent operation): Sets the component specified by the operation parameter to start at triggerattime time.
The first parameter specifies the type of the timer service, which accepts the following values:
Elapsed_realtime: Specifies the component that will start the operation after a certain amount of time from the time it starts.
Elapsed_realtime_wakeup: Specifies that the component corresponding to the operation is started after a certain amount of time from now on, even if the system shuts down will execute the corresponding component of the operation.
RTC: Specifies the component that initiates operation when the system calls the System.currenttimemills () method to return a value equal to Triggerattime.
Rtc_wakeup: Specifies the component that initiates operation when the system calls the System.currenttimemills () method to return a value equal to triggerattime, even if the system shutdown is performed
The corresponding component of the operation.
2.void setinexactrepeating (int type, long triggerattime, long interval, pendingintent operation): sets a non-precise recurring task,
3.void setrepeating (int type, long triggerattime, long interval, pendingintent operation): Sets a recurring timer service.
4, void Cancel (Pendingintent operation): Cancel the Alarmmanager timer service.
Alarmmanager Phone Alarm Clock Introduction