通译 android.app.AlarmManager 类

翻译 android.app.AlarmManager 类!--@page { margin: 0.79in }P { margin-bottom: 0.08in }H1 { margin-

翻译 android.app.AlarmManager 类

<!--@page { margin: 0.79in }P { margin-bottom: 0.08in }H1 { margin-bottom: 0.08in }H1.western { font-family: "Times New Roman", serif }H1.cjk { font-family: "DejaVu Sans" }H1.ctl { font-family: "Lohit Hindi" }TD P { margin-bottom: 0in }H2 { margin-bottom: 0.08in }H2.ctl { font-family: "Lohit Hindi" }TH P { margin-bottom: 0in }A:link { so-language: zxx }CODE.cjk { font-family: "DejaVu Sans", monospace }-->

publicclass

java.lang.Object

????

android.app.AlarmManager

int

ELAPSED_REALTIME

警报时在SystemClock.elapsedRealtime()(时间来自boot,包括休眠)

Alarm timein?

int

ELAPSED_REALTIME_WAKEUP

警报时在SystemClock.elapsedRealtime()(时间来自boot,包括休眠),当警报发生将唤醒设备。

Alarm timein?

long

INTERVAL_DAY

long

INTERVAL_FIFTEEN_MINUTES

通过setInexactRepeating(int,long, long, PendingIntent)有效的不精确的重复间隔被认可

Availableinexact recurrence intervals recognizedby?

long

INTERVAL_HALF_DAY

long

INTERVAL_HALF_HOUR

long

INTERVAL_HOUR

int

RTC

警报时在System.currentTimeMillis()(在UTC隔开时钟)

Alarm timein?

int

RTC_WAKEUP

警报时在System.currentTimeMillis()(在UTC隔开时钟),当警报发生将唤醒设备。

Alarm timein?

Public Methods

void

cancel(PendingIntent?operation)

移除任何匹配Intent的警报。

Remove anyalarms with a matching?

void

set(inttype, long triggerAtTime,?PendingIntent?operation)

预定一个警报。

Schedule analarm.

?

?

void

setInexactRepeating(inttype, long triggerAtTime, long interval,?PendingIntent?operation)

设定一个重复警报带有不精确的触发时间要件;例如,一个警报是每小时重复,但不一定在每个小时的开始重复。

Schedule arepeating alarm that has inexact trigger time requirements; forexample, an alarm that repeats every hour, but not necessarily atthe top of every hour.

?

void

setRepeating(inttype, long triggerAtTime, long interval,?PendingIntent?operation)

预定一个重复警报。

Schedule arepeating alarm.

?

void

setTime(longmillis)

设置系统隔开时间。

Set the systemwall clock time.

?

void

setTimeZone(String?timeZone)

设置系统默认时区。

Set the systemdefault time zone.

?