diff --git a/docs/html/preview/api-overview.jd b/docs/html/preview/api-overview.jd index 1686d79213ba0..75b3c528b42bf 100644 --- a/docs/html/preview/api-overview.jd +++ b/docs/html/preview/api-overview.jd @@ -86,9 +86,11 @@ web link and skip prompting users to select an app. To learn how to implement th App Linking.
The system now performs automatic full data backup and restore for apps. This behavior is -enabled by default for apps targeting M Preview; you do not need to add any additional code. If -users delete their Google accounts, their backup data is deleted as well. To learn how this feature +
The system now performs automatic full data backup and restore for apps. For the +duration of the M Developer Preview program, all +apps are backed up, independent of which SDK version they target. After the final M SDK release, +your app must target M to enable this behavior; you do not need to add any additional code. If users +delete their Google accounts, their backup data is deleted as well. To learn how this feature works and how to configure what to back up on the file system, see Auto Backup for Apps.
@@ -152,10 +154,9 @@ conjunction with a public or secret key implementation for user authentication.<To set the timeout duration for which the same key can be re-used after a user is successfully authenticated, call the new -{@code android.security.keystore.KeyGenParameterSpec.setUserAuthenticationValidityDurationSeconds()} +{@code android.security.keystore.KeyGenParameterSpec.Builder.setUserAuthenticationValidityDurationSeconds()} method when you set up a {@link javax.crypto.KeyGenerator} or -{@link java.security.KeyPairGenerator}. This feature currently works for symmetric cryptographic -operations.
+{@link java.security.KeyPairGenerator}.Avoid showing the re-authentication dialog excessively -- your apps should try using the cryptographic object first and if the the timeout expires, use the @@ -236,7 +237,7 @@ can summon the assistant within any app, by long-pressing on the HomeYour app can elect to not share the current context with the assistant by setting the {@link android.view.WindowManager.LayoutParams#FLAG_SECURE} flag. In addition to the standard set of information that the platform passes to the assistant, your app can share -additional information by using the new {@code android.app.Activity.AssistContent} class.
+additional information by using the new {@code android.app.assist.AssistContent} class.To provide the assistant with additional context from your app, follow these steps:
@@ -273,7 +274,7 @@ and connect a compatible Bluetooth stylus with their phone or tablet. While con information from the touch screen is fused with pressure and button information from the stylus to provide a greater range of expression than with the touch screen alone. Your app can listen for stylus button presses and perform secondary actions, by registering the new -{@code View.onStylusButtonPressListener} and {@code GestureDetector.OnStylusButtonPressListener} +{@code View.onContextClickListener} and {@code GestureDetector.onContextClickListener} callbacks in your activity.Use the {@link android.view.MotionEvent} methods and constants to detect stylus button @@ -284,11 +285,11 @@ interactions:
{@link android.view.MotionEvent#TOOL_TYPE_STYLUS}.The {@link android.hardware.camera2 Camera2} API is extended to support YUV and private -opaque format image reprocessing. Your app determine if the reprocessing capabilities are available -via {@code CameraCharacteristics.REQUEST_AVAILABLE_CAPABILITIES}. If a device supports reprocessing, -you can create a reprocessable camera capture session by calling +opaque format image reprocessing. To determine if these reprocessing capabilities are available, +call {@link android.hardware.camera2.CameraManager#getCameraCharacteristics(java.lang.String) +getCameraCharacteristics()} and check for the {@code REPROCESS_MAX_CAPTURE_STALL} key. If a +device supports reprocessing, you can create a reprocessable camera capture session by calling {@code CameraDevice.createReprocessableCaptureSession()}, and create requests for input buffer reprocessing.
-Use the {@code ImageWriter} class to connect the input buffer flow to the camera reprocessing -input. To get an empty buffer, follow this programming model:
+Use the {@code android.media.ImageWriter} class to connect the input buffer flow to the camera +reprocessing input. To get an empty buffer, follow this programming model:
The {@code ImageReader} class now supports {@code android.graphics.ImageFormat.PRIVATE} format -image streams. This support allows your app to maintain a circular image queue of -{@code ImageReader} output images, select one or more images, and send them to the -{@code ImageWriter} for camera reprocessing.
+The {@link android.media.ImageReader} class now supports +{@code android.graphics.ImageFormat.PRIVATE} format image streams. This support allows your app to +maintain a circular image queue of {@link android.media.ImageReader} output images, select one or +more images, and send them to the {@code ImageWriter} for camera reprocessing.
This preview includes the following new APIs for Android for Work:
@@ -441,10 +443,10 @@ can now control the following settings to improve management of Corporate-Owned, Single-Use (COSU) devices:Additionally, by setting app restrictions on Google Play services, Device Owners can specify -alternative Google accounts for unlocking FRP to replace the ones activated on the device.
-
diff --git a/docs/html/preview/behavior-changes.jd b/docs/html/preview/behavior-changes.jd
index 5ddac7a8eca16..8a8ea059e87c9 100644
--- a/docs/html/preview/behavior-changes.jd
+++ b/docs/html/preview/behavior-changes.jd
@@ -23,8 +23,9 @@ sdk.platform.apiLevel=MNC
If you have previously published an app for Android, be aware that your app - might be affected by these changes in the platform.
+If you have previously published an app for Android, be aware that these changes in the +platform affect your app.
This preview introduces a new permissions model, where users can now directly manage @@ -55,11 +56,11 @@ app permissions at runtime. This model gives users improved visibility and contr permissions, while streamlining the installation and auto-update processes for app developers. Users can grant or revoke permissions individually for installed apps.
-On your apps that target the M Preview, make sure to check and request for permissions at -runtime. To determine if your app has been granted a permission, call the -new {@code Context.checkSelfPermission()} method. To request for a permission, call the new -{@code Activity.requestPermission()} method. Even if your app is not targeting M, you -should test your app under the new permissions model.
+On your apps that target the M Preview release or higher, make sure to check for and request +permissions at runtime. To determine if your app has been granted a permission, call the +new {@code Context.checkSelfPermission()} method. To request a permission, call the new +{@code Activity.requestPermission()} method. Even if your app is not targeting the M Preview +release, you should test your app under the new permissions model.