From 1b75a3667f4bf3db6e2133125eb2cc55609405ce Mon Sep 17 00:00:00 2001 From: David Friedman Date: Tue, 29 Sep 2015 09:43:46 -0700 Subject: [PATCH] Docs: Correction to alarm-firing frequency info, restoration of "training nav". Corrected alarm-firing info to reflect that alarms don't fire more than once per 15 minutes in Doze. Also, the "Previous Next" had gone away from the top-right nav box. This CL also fixes that regression. Change-Id: Ied35284dd14a926adce8847beb039513ffc370f3 --- .../monitoring-device-state/doze-standby.jd | 32 +++++-------------- 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/docs/html/training/monitoring-device-state/doze-standby.jd b/docs/html/training/monitoring-device-state/doze-standby.jd index baaed7b0ff1ef..4eb681fb30ca3 100644 --- a/docs/html/training/monitoring-device-state/doze-standby.jd +++ b/docs/html/training/monitoring-device-state/doze-standby.jd @@ -3,7 +3,8 @@ page.metaDescription=Test and optimize your app for the power-saving features in page.tags=doze, app standby, marshmallow, alarms meta.tags="battery", "marshmallow", "alarms" page.image=images/cards/card-doze_16-9_2x.png -page.article=true + + parent.link=index.html trainingnavtop=true @@ -204,22 +205,13 @@ Standby you can set alarms that will fire even if the device is in Doze.

-

The system places certain restrictions on alarm frequency:

- - + android.app.PendingIntent) setAndAllowWhileIdle()} nor {@link + android.app.AlarmManager#setExactAndAllowWhileIdle(int, long, + android.app.PendingIntent) setExactAndAllowWhileIdle()} can fire alarms more than once per 15 +minutes per app.

The Doze restriction on network access is also likely to affect your app, @@ -466,14 +458,6 @@ $ adb shell am get-inactive <packageName> - - Calendar or timer app - Needs to notify user - - Not acceptable - Use {@link android.app.AlarmManager} and {@link android.app.job.JobScheduler} - APIs to optmize notifications, sync, etc. -