AlarmManager. set (AlarmManager. RTC_WAKEUP, System. currentTimeMillis () + 5000, sender );============================
The setRepeating method has four parameters. The meanings of these parameters are as follows:
Type: indicates the alert type. Generally, the values are AlarmManager. RTC and AlarmManager. RTC_WAKEUP. If you set the value of type to AlarmManager. RTC indicates a normal timer. If you set the value of type to AlarmManager. in addition to the timer function, RTC_WAKEUP also generates audible alarms (for example, audible alarms and vibrations ).
TriggerAtTime: the time to wait for 1st running times, that is, the Execution Delay Time, in milliseconds.
Interval: The execution interval in milliseconds.
Operation: A PendingIntent object that indicates the operation to be performed after the time. Similar to Intent, PendingIntent can encapsulate Activity, BroadcastReceiver, and Service. However, unlike the Intent, PendingIntent can exist independently of the application.