Docs: Added links to ACTION_NEW_PICTURE and ACTION_NEW_VIDEO
Bug:27534906
Change-Id: I0a01f46a1fa12a8c347d479c92b70c32cc0d3cd0
diff --git a/docs/html/preview/api-overview.jd b/docs/html/preview/api-overview.jd
index 8310c18..7eba386 100644
--- a/docs/html/preview/api-overview.jd
+++ b/docs/html/preview/api-overview.jd
@@ -97,7 +97,7 @@
<li> <strong>Template updates</strong>: We're updating notification templates to put a new emphasis on hero image and
avatar. Developers will be able to take advantage of the new
templates with minimal adjustments in their code.</li>
- <li> <strong>Bundled notifications</strong>: The system can group messages together, for example by message topic, and display the group. A user can take actions, such as Dismiss or Archive, on them in place. If you’ve implemented notifications for Android Wear, you’ll already be familiar with this model.
+ <li> <strong>Bundled notifications</strong>: The system can group messages together, for example by message topic, and display the group. A user can take actions, such as Dismiss or Archive, on them in place. If you’ve implemented notifications for Android Wear, you’ll already be familiar with this model.
with this model. </li>
<li> <strong>Direct reply</strong>: For real-time communication apps, the Android system supports inline replies
so that users can quickly respond to an SMS or text message directly within the
@@ -118,7 +118,7 @@
<p class="img-caption">
- <strong>Figure 2.</strong> Bundled notifications and direct reply.
+ <strong>Figure 2.</strong> Bundled notifications and direct reply.
</p>
<p>To learn how to implement the new features, see the <a href="{@docRoot}notification-updates.html">Notifications</a> guide.</p>
@@ -131,7 +131,7 @@
<img src="{@docRoot}preview/images/quicksettings.png" style="padding-left:1.5em;">
<p class="img-caption" style="padding-left:2em;">
- <strong>Figure 3.</strong> Quick Settings tiles in the notification shade.
+ <strong>Figure 3.</strong> Quick Settings tiles in the notification shade.
</p>
@@ -160,7 +160,7 @@
<img src="{@docRoot}preview/images/datasaver.png" style="border:2px solid #ddd">
<p class="img-caption" style="padding-right:2em;">
- <strong>Figure 4.</strong> Data Saver in Settings.
+ <strong>Figure 4.</strong> Data Saver in Settings.
</p>
</div>
@@ -326,7 +326,7 @@
<p>Hardware-backed keystores provide a much safer method to create, store,
and use cryptographic keys on Android devices. They protect keys from the
Linux kernel, potential Android vulnerabilities, and extraction
-from rooted devices.</p>
+from rooted devices.</p>
<p>To make it easier and more secure to use hardware-backed keystores,
Android N introduces Key Attestation. Apps and off-devices can use Key
@@ -568,7 +568,9 @@
especially on low-memory devices.</p>
<p>In Android N we're removing three commonly-used implicit broadcasts —
- {@link android.net.ConnectivityManager#CONNECTIVITY_ACTION}, <code>NEW_PICTURE</code>, and <code>NEW_VIDEO</code> — since those can wake the
+ {@link android.net.ConnectivityManager#CONNECTIVITY_ACTION}, {@link
+ android.hardware.Camera#ACTION_NEW_PICTURE}, and {@link
+ android.hardware.Camera#ACTION_NEW_VIDEO} — since those can wake the
background processes of multiple apps at once and strain memory and battery. If
your app is receiving these, take advantage of the N Developer Preview to
migrate to <code>JobScheduler</code> and related APIs instead. </p>
diff --git a/docs/html/preview/behavior-changes.jd b/docs/html/preview/behavior-changes.jd
index b6ef1105..804480b 100644
--- a/docs/html/preview/behavior-changes.jd
+++ b/docs/html/preview/behavior-changes.jd
@@ -136,10 +136,11 @@
</p>
<p>
- Similarly, apps can register to receive implicit {@code NEW_PICTURE} and
- {@code NEW_VIDEO} broadcasts from other apps, such as Camera. When a user
- takes a picture with the Camera app, these apps wake up to process the
- broadcast.
+ Similarly, apps can register to receive implicit {@link
+ android.hardware.Camera#ACTION_NEW_PICTURE} and {@link
+ android.hardware.Camera#ACTION_NEW_VIDEO} broadcasts from other apps, such as
+ Camera. When a user takes a picture with the Camera app, these apps wake up
+ to process the broadcast.
</p>
<p>
@@ -152,13 +153,14 @@
android.net.ConnectivityManager#CONNECTIVITY_ACTION} broadcasts, even if they
have manifest entries to request notification of these events. Apps running
in the foreground can still listen for {@code CONNECTIVITY_CHANGE} on their
- main thread if they request notification with a
- {@link android.content.BroadcastReceiver}.
+ main thread if they request notification with a {@link
+ android.content.BroadcastReceiver}.
</li>
- <li>Apps cannot send or receive {@code NEW_PICTURE} or {@code NEW_VIDEO}
- broadcasts. This optimization affects all apps, not only those
- targeting Android N.
+ <li>Apps cannot send or receive {@link
+ android.hardware.Camera#ACTION_NEW_PICTURE} or {@link
+ android.hardware.Camera#ACTION_NEW_VIDEO} broadcasts. This optimization
+ affects all apps, not only those targeting Android N.
</li>
</ul>
diff --git a/docs/html/preview/features/background-optimization.jd b/docs/html/preview/features/background-optimization.jd
index 3fec187..4bcf785 100644
--- a/docs/html/preview/features/background-optimization.jd
+++ b/docs/html/preview/features/background-optimization.jd
@@ -65,9 +65,10 @@
android.content.Context#registerReceiver Context.registerReceiver()}.
</li>
- <li>Apps cannot send or receive {@code NEW_PICTURE} or {@code NEW_VIDEO}
- broadcasts. This optimization affects all apps, not only those targeting the
- Preview.
+ <li>Apps cannot send or receive {@link
+ android.hardware.Camera#ACTION_NEW_PICTURE} or {@link
+ android.hardware.Camera#ACTION_NEW_VIDEO} broadcasts. This optimization
+ affects all apps, not only those targeting the Preview.
</li>
</ul>
@@ -194,8 +195,9 @@
</h2>
<p>
- In the N Developer Preview, apps are not able to send or receive {@code
- NEW_PICTURE} or {@code NEW_VIDEO} broadcasts. This restriction helps
+ In the N Developer Preview, apps are not able to send or receive {@link
+ android.hardware.Camera#ACTION_NEW_PICTURE} or {@link
+ android.hardware.Camera#ACTION_NEW_VIDEO} broadcasts. This restriction helps
alleviate the performance and user experience impacts when several apps must
wake up in order to process a new image or video. The N Developer Preview
extends {@link android.app.job.JobInfo} and {@link