diff --git a/docs/html/preview/behavior-changes.jd b/docs/html/preview/behavior-changes.jd index 6be7f5d1726f8..1f8a74f86de32 100644 --- a/docs/html/preview/behavior-changes.jd +++ b/docs/html/preview/behavior-changes.jd @@ -33,7 +33,7 @@ page.image=images/cards/card-n-changes_2x.png
- Along with new features and capabilities, the Android N Developer Preview + Along with new features and capabilities, Android N includes a variety of system and API behavior changes. This document highlights some of the key changes that you should understand and account for in your apps. @@ -56,7 +56,7 @@ page.image=images/cards/card-n-changes_2x.png
- The Preview contains system behavior changes aimed at improving the battery + Android N contains system behavior changes aimed at improving the battery life of devices, RAM usage, and app performance. These changes can impact the availability of system resources and system notifications to your app. You should review these changes and evaluate how your app may need to adjust to @@ -68,7 +68,7 @@ page.image=images/cards/card-n-changes_2x.png
Introduced in Android 6.0 (API level 23), Doze improves battery life by deferring CPU and network activities when a user leaves a device unplugged, - stationary, and with the screen turned off. This Preview brings further + stationary, and with the screen turned off. Android N brings further enhancements to Doze by applying a subset of CPU and network restrictions while the device is unplugged with the screen turned off, but not necessarily stationary, for example, when a handset is traveling in a user’s pocket. @@ -118,7 +118,7 @@ page.image=images/cards/card-n-changes_2x.png
- The Preview removes three implicit broadcasts in order to help optimize both + Android N removes three implicit broadcasts in order to help optimize both memory use and power consumption. This change is necessary because implicit broadcasts frequently start apps that have registered to listen for them in the background. Removing these broadcasts can substantially benefit device @@ -143,12 +143,12 @@ page.image=images/cards/card-n-changes_2x.png
- To alleviate these issues, the Preview applies the following + To alleviate these issues, Android N applies the following optimizations:
- The Preview includes changes to permissions that may affect your app, + Android N includes changes to permissions that may affect your app, including user accounts permissions and a new permission for writing to external storage. Here is a summary of the permissions that have changed in the preview: @@ -199,7 +199,7 @@ page.image=images/cards/card-n-changes_2x.png
The GET_ACCOUNTS permission is now deprecated. The system ignores this - permission for apps that target the N Developer Preview. + permission for apps that target Android N.
- This Preview includes changes intended to improve the usability of the + Android N includes changes intended to improve the usability of the platform for users with low or impaired vision. These changes should generally not require code changes in your app, however you should review these feature and test them with your app to assess potential impacts to user @@ -238,7 +238,7 @@ page.image=images/cards/card-n-changes_2x.png
- The Preview enables users to set Display sizewhich magnifies
+ Android N enables users to set Display sizewhich magnifies
or shrinks all elements on the screen, thereby improving device accessibility
for users with low vision. Users cannot zoom the screen past a minimum screen
width of
Figure 3. The screen on the right shows the effect of
- increasing the Display size of a device running an N Preview system image.
+ increasing the Display size of a device running an Android N system image.
- The Preview includes Vision Settings on the Welcome screen, where users can + Android N includes Vision Settings on the Welcome screen, where users can set up the following accessibility settings on a new device: Magnification gesture, Font size, Display size and TalkBack. This change @@ -310,7 +310,7 @@ page.image=images/cards/card-n-changes_2x.png
- The Preview moves Android’s Java language libraries to an OpenJDK-based + Android N moves Android’s Java language libraries to an OpenJDK-based approach, creating a common code base for developers to build apps and services. If your app depends on a private implementation of Java or unspecified behavior, you should be aware of these known issues: @@ -357,14 +357,14 @@ java.lang.NoSuchFieldException: No field array in class Ljava/util/ArrayList;
- The Preview includes namespace changes to prevent loading of non-public APIs. + Android N includes namespace changes to prevent loading of non-public APIs. If you use the NDK, you should only be using public APIs from the Android platform. Using non-public APIs in the next official release of Android can cause your app to crash.
- In order to alert you to use of non-public APIs, apps running on a Preview + In order to alert you to use of non-public APIs, apps running on an Android N device generate an error in logcat output when an app calls a non-public API. This error is also displayed on the device screen as a message to help raise awareness of this situation. You should review your app code to @@ -399,8 +399,7 @@ java.lang.NoSuchFieldException: No field array in class Ljava/util/ArrayList;
To help you diagnose these types problems here are some example Java and NDK - errors you might encounter when attempting to build your app with the N - Developer Preview: + errors you might encounter when attempting to build your app with Android N:
Example Java error:
@@ -445,7 +444,7 @@ JavaVM::AttachCurrentThread from <jni.h>.- The Preview contains changes for apps that target Android for Work, including + Android N contains changes for apps that target Android for Work, including changes to certificate installation, password resetting, secondary user management, and access to device identifiers. If you are building apps for Android for Work environments, you should review these changes and modify diff --git a/docs/html/preview/download.jd b/docs/html/preview/download.jd index 456f7c8bb4ef5..ac70b3ed74f21 100644 --- a/docs/html/preview/download.jd +++ b/docs/html/preview/download.jd @@ -170,7 +170,7 @@ This is the Android SDK Preview License Agreement (the “License Agreement”).
The Android N Developer Preview includes device system images to help you test your app and the new APIs coming in the next release of the platform. - This document describes how to get Preview system images on a device for + This document describes how to get Android N system images on a device for testing.
-- In order to effectively test your apps with the Preview, use - a Preview emulator provided with the Preview SDK or configure a device - with a Preview system image. The N Developer Preview allows you to update - devices for use in testing the functionality of the Preview APIs and system - behaviors with your apps. You can get the Preview on a device by opting a - device into the Android Beta Program or by downloading a preview system + In order to effectively test your apps with Android N, use + an Android N emulator provided with the N Preview SDK or configure a device + with an Android N system image. Android N allows you to update + devices for use in testing the functionality of the Android N APIs and system + behaviors with your apps. You can get Android N on a device by opting a + device into the Android Beta Program or by downloading an Android N system image and installing it on a device.
@@ -212,7 +212,7 @@ This is the Android SDK Preview License Agreement (the “License Agreement”).- You can create emulators containing the Preview within the Preview SDK. + You can create emulators containing Android N within the Preview SDK. For more information about getting the Preview SDK, see Set Up the SDK.
@@ -221,9 +221,9 @@ This is the Android SDK Preview License Agreement (the “License Agreement”).- You can receive Preview versions of Android on compatible devices by + You can receive preview versions of Android on compatible devices by enrolling them in the Android Beta Program. Once you enroll a device in - this program, it receives Preview versions of Android over-the-air (OTA). + this program, it receives preview versions of Android over-the-air (OTA). These updates are automatically downloaded and can installed just like official updates.
diff --git a/docs/html/preview/features/afw.jd b/docs/html/preview/features/afw.jd index a67a1c88e33b4..7fd29dd4976b3 100644 --- a/docs/html/preview/features/afw.jd +++ b/docs/html/preview/features/afw.jd @@ -1,5 +1,5 @@ page.title=Android for Work Updates -page.metaDescription=New Android for Work APIs and features in the N Developer Preview. +page.metaDescription=New Android for Work APIs and features in Android N. page.keywords="android for work", "android N", "enterprise", "QR code" @jd:body @@ -84,8 +84,8 @@ page.keywords="android for work", "android N", "enterprise", "QR code"This document describes the new Android for Work features provided in the -N Developer Preview.
+This document describes the new Android for Work features provided in +Android N.
- The Preview includes the following API additions to support this feature. For + Android N includes the following API additions to support this feature. For details, see the N Preview SDK Reference.
diff --git a/docs/html/preview/features/background-optimization.jd b/docs/html/preview/features/background-optimization.jd index 1422db5fb33de..5c736551a76a9 100644 --- a/docs/html/preview/features/background-optimization.jd +++ b/docs/html/preview/features/background-optimization.jd @@ -57,12 +57,12 @@ page.keywords="android N", "implicit broadcasts", "job scheduler"- To alleviate this issue, the N Developer Preview applies the following + To alleviate this issue, Android N applies the following restrictions:
- Apps targeting the N Developer Preview do not receive {@link + Apps targeting Android N do not receive {@link android.net.ConnectivityManager#CONNECTIVITY_ACTION} broadcasts, even if they register to receive them in their manifest. This could pose a problem for apps that want to listen for network changes or perform bulk network @@ -225,10 +225,10 @@ GcmNetworkManager
- In the N Developer Preview, apps are not able to send or receive {@code + In Android N, apps are not able to send or receive {@code NEW_PICTURE} or {@code NEW_VIDEO} broadcasts. This restriction helps alleviate the performance and user experience impacts when several apps must - wake up in order to process them. The N Developer Preview extends {@link + wake up in order to process them. Android N extends {@link android.app.job.JobInfo} and {@link android.app.job.JobParameters} to provide an alternative solution.
@@ -238,7 +238,7 @@ GcmNetworkManager and specify {@code Task.NETWORK_STATE_UNMETERED}.- To help trigger jobs on content URI changes, the N Developer Preview extends + To help trigger jobs on content URI changes, Android N extends the {@link android.app.job.JobInfo} API with the following methods:
@@ -313,7 +313,7 @@ public static void scheduleJob(Context context) {- The N Developer Preview also extends {@link android.app.job.JobParameters} to + Android N also extends {@link android.app.job.JobParameters} to allow your app to receive useful information about what content authorities and URIs triggered the job:
@@ -386,14 +386,14 @@ public boolean onStartJob(JobParameters params) { Optimizing your apps to run on low-memory devices, or in low-memory conditions, can improve performance and user experience. Eliminating the use of implicit broadcasts and background services is a great way to make sure - your app runs well on such devices. Although the N Developer Preview takes + your app runs well on such devices. Although Android N takes steps to limit the use of certain implicit broadcasts, consider optimizing your app to run without the use of implicit broadcasts and background services, entirely.- To help you test how your app behaves without those background processes, The - N Developer Preview introduces some additional Android Debug Bridge (ADB) commands:
diff --git a/docs/html/preview/features/data-saver.jd b/docs/html/preview/features/data-saver.jd index 17e78eb3cd6ca..5002543163f1c 100644 --- a/docs/html/preview/features/data-saver.jd +++ b/docs/html/preview/features/data-saver.jd @@ -24,7 +24,7 @@ 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 the N Developer Preview, users can + 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.
@@ -38,7 +38,7 @@ page.keywords="android N", "data usage", "metered network"- The N Developer Preview extends the {@link android.net.ConnectivityManager} + 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 changes. It is considered good practice for apps to check whether the @@ -51,7 +51,7 @@ page.keywords="android N", "data usage", "metered network"
- In the N Developer Preview, apps can use the {@link + In Android N, 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: diff --git a/docs/html/preview/features/direct-boot.jd b/docs/html/preview/features/direct-boot.jd index 4153d40da997a..207a56ca12533 100644 --- a/docs/html/preview/features/direct-boot.jd +++ b/docs/html/preview/features/direct-boot.jd @@ -17,7 +17,7 @@ page.tags=androidn -
Android N Developer Preview runs in a secure, Direct Boot mode +
Android N runs in a secure, Direct Boot mode when the device has been powered on but the user has not unlocked the device. To support this, the system provides two storage locations for data:
@@ -143,7 +143,7 @@ two ways to enable Direct Boot.Caution: Enabling Direct Boot wipes all user data on the device.
-On supported devices with Android N Developer Preview installed, enable +
On supported devices with Android N installed, enable Direct Boot by doing one of the following:
ICU4J is an open-source, widely used set of Java libraries providing Unicode - and globalization support for software applications. The N Developer Preview + and globalization support for software applications. Android N exposes a subset of the ICU4J APIs in the Android framework for app developers to use under the {@code android.icu} package. These APIs use localization data present on the device. As a result, you can reduce your APK footprint by not compiling the ICU4J libraries into your APK; instead, you can simply call out to them in the framework. (In this case, you may want to provide multiple versions - of your APK, so users running versions of Android lower than the N Developer - Preview can download a version of the app that contains the ICU4J libraries.) + of your APK, so users running versions of Android lower than Android N + can download a version of the app that contains the ICU4J libraries.)
@@ -50,17 +50,17 @@ page.title=ICU4J Android Framework APIs
- The Preview exposes a subset of the ICU4J APIs via the
+ Android N exposes a subset of the ICU4J APIs via the
android.icu package, rather than com.ibm.icu. The
Android framework may choose not to
- expose ICU4J APIs for various reasons; for example, the N Preview does not expose
+ expose ICU4J APIs for various reasons; for example, Android N does not expose
some deprecated APIs or those that the ICU team have not yet declared as
stable. As the ICU team deprecates APIs in the future, Android will also mark
them as deprecated but will continue to include them.
Table 1. ICU and CLDR versions used - in the Preview.
+ in Android N.| Android API level | @@ -68,7 +68,7 @@ page.title=ICU4J Android Framework APIsCLDR version | ||
|---|---|---|---|
| N Developer Preview | +Android N | 56 | 28 |