diff options
| -rw-r--r-- | docs/html/jd_extras_en.js | 49 | ||||
| -rw-r--r-- | docs/html/preview/api-overview.jd | 36 | ||||
| -rw-r--r-- | docs/html/preview/features/data-saver.jd | 21 |
3 files changed, 81 insertions, 25 deletions
diff --git a/docs/html/jd_extras_en.js b/docs/html/jd_extras_en.js index 61eecc07bac8..b351aa5d30e0 100644 --- a/docs/html/jd_extras_en.js +++ b/docs/html/jd_extras_en.js @@ -657,7 +657,54 @@ METADATA['en'].extras = METADATA['en'].extras.concat([ "image":"https://i1.ytimg.com/vi/K2dodTXARqc/maxresdefault.jpg", "type":"video" }, - + { + "title":"Instant Run: An Android Tool Time Deep Dive", + "category":"", + "summary":"Instant Run is an Android Studio feature that significantly reduces the time for building and deploying incremental code changes during your coding / testing / debugging lifecycle.", + "url":"https://www.youtube.com/watch?v=StqAZ1OQbqA&list=PLWz5rJ2EKKc_w6fodMGrA1_tsI3pqPbqa", + "group":"", + "keywords": ["studio", "tools"], + "tags": [ + ], + "image":"https://i1.ytimg.com/vi/StqAZ1OQbqA/maxresdefault.jpg", + "type":"youtube" + }, + { + "title":"What’s New in Android Studio 2.1", + "category":"", + "summary":"Android Studio 2.1 is required to try out new features and APIs of the Android N developer preview including the new Jack compiler and Java 8 language support. It also includes performance improvements to Instant Run, and a number of bug fixes and stability improvements.", + "url":"https://www.youtube.com/watch?v=ZOz_yr8Yxq8&list=PLWz5rJ2EKKc_w6fodMGrA1_tsI3pqPbqa", + "group":"", + "keywords": ["studio", "tools"], + "tags": [ + ], + "image":"https://i1.ytimg.com/vi/ZOz_yr8Yxq8/maxresdefault.jpg", + "type":"youtube" + }, + { + "title":"10 Things You Didn’t Know You Could Do", + "category":"", + "summary":"This Android Tool Time pro-tip roundup with Reto Meier shows off expert Android Studio tips designed to help you write less code, and make every keystroke count", + "url":"https://www.youtube.com/watch?v=eOV2owswDkE&list=PLWz5rJ2EKKc_w6fodMGrA1_tsI3pqPbqa", + "group":"", + "keywords": ["studio", "tools"], + "tags": [ + ], + "image":"https://i1.ytimg.com/vi/eOV2owswDkE/maxresdefault.jpg", + "type":"youtube" + }, + { + "title":"Live Templates in Android Studio", + "category":"", + "summary":"Android Tool Time Protip: Use and create your own Live Templates in Android Studio to write more code with less keystrokes using Live Templates to insert common, templatized code snippets.", + "url":"https://www.youtube.com/watch?v=4rI4tTd7-J8&list=PLWz5rJ2EKKc_w6fodMGrA1_tsI3pqPbqa", + "group":"", + "keywords": ["studio", "tools"], + "tags": [ + ], + "image":"https://i1.ytimg.com/vi/4rI4tTd7-J8/maxresdefault.jpg", + "type":"youtube" + }, { "title":"Google Play Services 7.5", "category":"", diff --git a/docs/html/preview/api-overview.jd b/docs/html/preview/api-overview.jd index 110418a262cd..dc78bb944ab6 100644 --- a/docs/html/preview/api-overview.jd +++ b/docs/html/preview/api-overview.jd @@ -733,19 +733,21 @@ specify how user CAs should be trusted.</p> <p> Android N introduces APK Signature Scheme v2, a new app-signing scheme that - offers faster app install times and better protection against unauthorized - alterations to APK files. Android Studio 2.2 and Gradle provide built-in - support for APK Signature Scheme v2. + offers faster app install times and more protection against unauthorized + alterations to APK files. By default, Android Studio 2.2 and the Android + Plugin for Gradle 2.2 sign your app using both APK Signature Scheme v2 and + the traditional signing scheme, which uses JAR signing. </p> <p> - Although we recommend applying APK Signature Scheme v2 to your app, the new - scheme is not mandatory. If your app doesn't build properly when using the - APK Signature Scheme v2, you can use the traditional signing scheme—which - uses JAR signing—instead. To use the traditional scheme, open the - module-level <code>build.gradle</code> file and add the - <code>v2SigningEnabled</code> parameter to your release signing - configuration, setting this parameter's value to <code>false</code>: + Although we recommend applying APK Signature Scheme v2 to your app, this new + scheme is not mandatory. If your app doesn't build properly when using APK + Signature Scheme v2, you can disable the new scheme. The disabling process + causes Android Studio 2.2 and the Android Plugin for Gradle 2.2 to sign your + app using only the traditional signing scheme. To sign with only the + traditional scheme, open the module-level <code>build.gradle</code> file, then + add the line <code>v2SigningEnabled false</code> to your release signing + configuration: </p> <pre> @@ -764,12 +766,18 @@ specify how user CAs should be trusted.</p> } </pre> +<p class="caution"><strong>Caution: </strong> If you sign your app using APK + Signature Scheme v2 and make further changes to the app, the app's signature + is invalidated. For this reason, use tools such as <code>zipalign</code> + before signing your app using APK Signature Scheme v2, not after. +</p> + <p> - For more information, see the following guides, which describe how to <a href= - "{@docRoot}studio/tools/publishing/app-signing.html#release-mode"> sign an app - in Android Studio</a> and how to <a href= + For more information, read the Android Studio documents that describe how to + <a href="{@docRoot}studio/tools/publishing/app-signing.html#release-mode"> + sign an app</a> in Android Studio and how to <a href= "{@docRoot}studio/tools/building/configuring-gradle.html#signing"> configure - the Gradle build file for signing apps</a>. + the build file for signing apps</a> using the Android Plugin for Gradle. </p> <h2 id="scoped_directory_access">Scoped directory access</h2> diff --git a/docs/html/preview/features/data-saver.jd b/docs/html/preview/features/data-saver.jd index d5cdf277c4d4..c4cab1841175 100644 --- a/docs/html/preview/features/data-saver.jd +++ b/docs/html/preview/features/data-saver.jd @@ -14,7 +14,7 @@ page.keywords="android N", "data usage", "metered network" <a href="#status">Checking Data Saver Preferences</a> <ol> <li> - <a href="#request-whitelist">Requesting Whitelist Permissions</a> + <a href="#request-whitelist">Requesting whitelist permissions</a> </li> </ol> </li> @@ -138,15 +138,17 @@ if (connMgr.isActiveNetworkMetered()) { If your app needs to use data in the background, it can request whitelist permissions by sending a <code>Settings.ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS</code> - (<code>"android.settings.IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS"</code>) - intent with a <code>package:<your-app-id></code> URI. + intent containing a URI of your app's package name: for example, + <code>package:MY_APP_ID</code>. </p> <p> - Sending the intent and URI launches the <strong>Settings</strong> app, and - displays your app's <strong>App Data Usage</strong> page to the user. The - user can then decide whether to enable background data for your app. - It is good practice to prompt the user before sending this intent. + Sending the intent and URI launches the <strong>Settings</strong> app and + displays data usage settings for your app. The user can then decide whether + to enable background data for your app. Before you send this intent, it is + good practice to first ask the user if they want to launch the + <strong>Settings</strong> app for the purpose of enabling background data + usage. </p> <h2 id="monitor-changes"> @@ -156,9 +158,8 @@ if (connMgr.isActiveNetworkMetered()) { <p> Apps can monitor changes to Data Saver preferences by creating a {@link android.content.BroadcastReceiver} to listen for {@code - ConnectivityManager.ACTION_RESTRICT_BACKGROUND_CHANGED} ({@code - "android.net.conn.RESTRICT_BACKGROUND_CHANGED"}) and dynamically registering - the receiver with {@link android.content.Context#registerReceiver + ConnectivityManager.ACTION_RESTRICT_BACKGROUND_CHANGED} and dynamically + registering the receiver with {@link android.content.Context#registerReceiver Context.registerReceiver()}. When an app receives this broadcast, it should <a href="#status">check if the new Data Saver preferences affect its permissions</a> by calling {@code |