Lines Matching refs:AlarmManager
47 <p>Alarms (based on the {@link android.app.AlarmManager} class) give you a way to perform
87 is a better solution than {@link android.app.AlarmManager}. A sync adapter gives you all
88 the same scheduling options as {@link android.app.AlarmManager}, but it offers
120 <p>Use {@link android.app.AlarmManager#setInexactRepeating setInexactRepeating()} instead
121 of {@link android.app.AlarmManager#setRepeating setRepeating()}.
122 When you use {@link android.app.AlarmManager#setInexactRepeating setInexactRepeating()},
127 {@link android.app.AlarmManager#setInexactRepeating setInexactRepeating()} is an
128 improvement over {@link android.app.AlarmManager#setRepeating setRepeating()}, it can
136 Use {@link android.app.AlarmManager#ELAPSED_REALTIME} if you can. The different alarm
193 <li>{@link android.app.AlarmManager#ELAPSED_REALTIME}—Fires the pending intent based
197 <li>{@link android.app.AlarmManager#ELAPSED_REALTIME_WAKEUP}—Wakes up the device and
201 <li>{@link android.app.AlarmManager#RTC}—Fires the pending intent
204 <li>{@link android.app.AlarmManager#RTC_WAKEUP}—Wakes up the
210 <p>Here are some examples of using {@link android.app.AlarmManager#ELAPSED_REALTIME_WAKEUP}.
218 alarmMgr.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
219 AlarmManager.INTERVAL_HALF_HOUR,
220 AlarmManager.INTERVAL_HALF_HOUR, alarmIntent);</pre>
224 <pre>private AlarmManager alarmMgr;
227 alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
231 alarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
238 <p>Here are some examples of using {@link android.app.AlarmManager#RTC_WAKEUP}.</p>
248 // With setInexactRepeating(), you have to use one of the AlarmManager interval
249 // constants--in this case, AlarmManager.INTERVAL_DAY.
250 alarmMgr.setInexactRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),
251 AlarmManager.INTERVAL_DAY, alarmIntent);</pre>
256 <pre>private AlarmManager alarmMgr;
259 alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
271 alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),
278 {@link android.app.AlarmManager#setInexactRepeating setInexactRepeating()} is the right
285 thereafter—use {@link android.app.AlarmManager#setRepeating setRepeating()}. But you
288 <p>With {@link android.app.AlarmManager#setInexactRepeating setInexactRepeating()},
290 {@link android.app.AlarmManager#setRepeating setRepeating()}. You have to use one of the
291 interval constants, such as {@link android.app.AlarmManager#INTERVAL_FIFTEEN_MINUTES},
292 {@link android.app.AlarmManager#INTERVAL_DAY}, and so on. See {@link android.app.AlarmManager}
299 To cancel an alarm, call {@link android.app.AlarmManager#cancel cancel()} on the Alarm
313 that the {@link android.app.AlarmManager} will continue doing its task without the user