From 9140e0dea39a95e551cb2f34273af8bccca5999f Mon Sep 17 00:00:00 2001 From: Adarsh Fernando Date: Wed, 6 Apr 2016 10:36:53 -0700 Subject: [PATCH] Docs: Minor fixes to Background Optimizations and Doze docs Change-Id: I174ff60090645ccc94532d3b2638a089aac76697 --- docs/html/preview/features/background-optimization.jd | 4 ++-- .../training/monitoring-device-state/doze-standby.jd | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/html/preview/features/background-optimization.jd b/docs/html/preview/features/background-optimization.jd index e415bd300c991..79ba5c81df2d6 100644 --- a/docs/html/preview/features/background-optimization.jd +++ b/docs/html/preview/features/background-optimization.jd @@ -112,7 +112,7 @@ page.keywords="android N", "implicit broadcasts", "job scheduler"

Note: A {@link android.content.BroadcastReceiver} registered with {@link android.content.Context#registerReceiver Context.registerReceiver()} - continues to receive these broadcasts while the app is in the foreground. + continues to receive these broadcasts while the app is running.

@@ -269,7 +269,7 @@ public static void scheduleJob(Context context) { MY_BACKGROUND_JOB, new ComponentName(context, MediaContentJob.class)); builder.addTriggerContentUri( - new JobInfo.TriggerContentUri(MEDIA_URI, + new JobInfo.TriggerContentUri(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, JobInfo.TriggerContentUri.FLAG_NOTIFY_FOR_DESCENDANTS)); js.schedule(builder.build()); } diff --git a/docs/html/training/monitoring-device-state/doze-standby.jd b/docs/html/training/monitoring-device-state/doze-standby.jd index 11e81c1f1c60d..9250288a7dd4f 100644 --- a/docs/html/training/monitoring-device-state/doze-standby.jd +++ b/docs/html/training/monitoring-device-state/doze-standby.jd @@ -205,13 +205,14 @@ Standby you can set alarms that will fire even if the device is in Doze.

-

Note: Neither -{@link +

+ Note: Neither {@link android.app.AlarmManager#setAndAllowWhileIdle(int, long, 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.

+ android.app.PendingIntent) setExactAndAllowWhileIdle()} can fire alarms more + than once per 9 minutes, per app. +

The Doze restriction on network access is also likely to affect your app,