From 1c796b1afe9a9b7ec3d15c23216ef4b3a9ed9004 Mon Sep 17 00:00:00 2001 From: Adarsh Fernando Date: Tue, 8 Mar 2016 17:01:36 -0800 Subject: [PATCH] Docs: Minor fixes to Data Saver page Bug: 27048177 Change-Id: Ibe33a0679b7ee6a7d685058d0b567655e8726616 --- docs/html/preview/features/data-saver.jd | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/html/preview/features/data-saver.jd b/docs/html/preview/features/data-saver.jd index 5002543163f1c..03f0df2ed26ef 100644 --- a/docs/html/preview/features/data-saver.jd +++ b/docs/html/preview/features/data-saver.jd @@ -11,7 +11,7 @@ page.keywords="android N", "data usage", "metered network"
  1. - Checking User Data Saver Preferences + Checking Data Saver Preferences
  2. @@ -24,9 +24,9 @@ page.keywords="android N", "data usage", "metered network"

    Over the life of a smartphone, the cost of a cellular data plan can easily - exceed the cost of the device itself. In Android N, users can - enable Data Saver in order to use less data, whether roaming, near the end of - the billing cycle, or on a small prepaid data pack. + exceed the cost of the device itself. In the N Developer Preview, users can + enable Data Saver on a device-wide basis in order to use less data, whether + roaming, near the end of the billing cycle, or on a small prepaid data pack.

    @@ -38,20 +38,20 @@ page.keywords="android N", "data usage", "metered network"

    - Android N extends the {@link android.net.ConnectivityManager} - API to provide apps a way to retrieve the user’s Data Saver - preferences and monitor preference + The N Developer Preview extends the {@link android.net.ConnectivityManager} + API to provide apps with a way to retrieve the user’s Data + Saver preferences and monitor preference changes. It is considered good practice for apps to check whether the user has enabled Data Saver and make an effort to limit foreground and background data usage.

    -

    - Checking the User's Data Saver Preferences -

    +

    + Checking Data Saver Preferences +

    - In Android N, apps can use the {@link + In the N Developer Preview, apps can use the {@link android.net.ConnectivityManager} API to determine what data usage restrictions are being applied. The {@code getRestrictBackgroundStatus()} method returns one of the following values: @@ -121,9 +121,9 @@ if (connMgr.isActiveNetworkMetered()) { } -

    +

    Monitoring Changes to Data Saver Preferences -

    +

    Apps can monitor changes to Data Saver preferences by creating a {@link