diff options
Diffstat (limited to 'docs/html/about')
| -rw-r--r-- | docs/html/about/about_toc.cs | 1 | ||||
| -rw-r--r-- | docs/html/about/dashboards/index.jd | 65 | ||||
| -rw-r--r-- | docs/html/about/versions/android-5.1.jd | 124 | ||||
| -rw-r--r-- | docs/html/about/versions/lollipop.jd | 5 |
4 files changed, 169 insertions, 26 deletions
diff --git a/docs/html/about/about_toc.cs b/docs/html/about/about_toc.cs index b1357f2..62d37c5 100644 --- a/docs/html/about/about_toc.cs +++ b/docs/html/about/about_toc.cs @@ -16,6 +16,7 @@ es-lang="Lollipop"> <span class="en">Lollipop</span></a></div> <ul> + <li><a href="<?cs var:toroot ?>about/versions/android-5.1.html">Android 5.1 APIs</a></li> <li><a href="<?cs var:toroot ?>about/versions/android-5.0.html" zh-tw-lang="Android 5.0 API" zh-cn-lang="Android 5.0 API" diff --git a/docs/html/about/dashboards/index.jd b/docs/html/about/dashboards/index.jd index cfb65a5..52f086e 100644 --- a/docs/html/about/dashboards/index.jd +++ b/docs/html/about/dashboards/index.jd @@ -57,7 +57,7 @@ Platform Versions</a>.</p> </div> -<p style="clear:both"><em>Data collected during a 7-day period ending on March 2, 2015. +<p style="clear:both"><em>Data collected during a 7-day period ending on April 6, 2015. <br/>Any versions with less than 0.1% distribution are not shown.</em> </p> @@ -88,7 +88,7 @@ Screens</a>.</p> </div> -<p style="clear:both"><em>Data collected during a 7-day period ending on March 2, 2015. +<p style="clear:both"><em>Data collected during a 7-day period ending on April 6, 2015. <br/>Any screen configurations with less than 0.1% distribution are not shown.</em></p> @@ -108,8 +108,7 @@ support for any lower version (for example, support for version 2.0 also implies <img alt="" style="float:right" -src="//chart.googleapis.com/chart?chl=GL%202.0%7CGL%203.0&chf=bg%2Cs%2C00000000&chd=t%3A67.5%2C32.5&chco=c4df9b%2C6fad0c&cht=p&chs=400x250" /> - +src="//chart.googleapis.com/chart?chl=GL%202.0%7CGL%203.0%7CGL%203.1&chf=bg%2Cs%2C00000000&chd=t%3A65.9%2C33.8%2C0.3&chco=c4df9b%2C6fad0c&cht=p&chs=400x250"> <p>To declare which version of OpenGL ES your application requires, you should use the {@code android:glEsVersion} attribute of the <a @@ -127,17 +126,21 @@ uses.</p> </tr> <tr> <td>2.0</td> -<td>67.5%</td> +<td>65.9%</td> </tr> <tr> <td>3.0</td> -<td>32.5%</td> +<td>33.8%</td> +</tr> +<tr> +<td>3.1</td> +<td>0.3%</td> </tr> </table> -<p style="clear:both"><em>Data collected during a 7-day period ending on March 2, 2015</em></p> +<p style="clear:both"><em>Data collected during a 7-day period ending on April 6, 2015</em></p> @@ -155,7 +158,7 @@ uses.</p> var VERSION_DATA = [ { - "chart": "//chart.googleapis.com/chart?chl=Froyo%7CGingerbread%7CIce%20Cream%20Sandwich%7CJelly%20Bean%7CKitKat%7CLollipop&chco=c4df9b%2C6fad0c&chd=t%3A0.4%2C6.9%2C5.9%2C42.6%2C40.9%2C3.3&chf=bg%2Cs%2C00000000&chs=500x250&cht=p", + "chart": "//chart.googleapis.com/chart?chl=Froyo%7CGingerbread%7CIce%20Cream%20Sandwich%7CJelly%20Bean%7CKitKat%7CLollipop&chf=bg%2Cs%2C00000000&chd=t%3A0.4%2C6.4%2C5.7%2C40.7%2C41.4%2C5.4&chco=c4df9b%2C6fad0c&chs=500x250&cht=p", "data": [ { "api": 8, @@ -165,37 +168,42 @@ var VERSION_DATA = { "api": 10, "name": "Gingerbread", - "perc": "6.9" + "perc": "6.4" }, { "api": 15, "name": "Ice Cream Sandwich", - "perc": "5.9" + "perc": "5.7" }, { "api": 16, "name": "Jelly Bean", - "perc": "17.3" + "perc": "16.5" }, { "api": 17, "name": "Jelly Bean", - "perc": "19.4" + "perc": "18.6" }, { "api": 18, "name": "Jelly Bean", - "perc": "5.9" + "perc": "5.6" }, { "api": 19, "name": "KitKat", - "perc": "40.9" + "perc": "41.4" }, { "api": 21, "name": "Lollipop", - "perc": "3.3" + "perc": "5.0" + }, + { + "api": 22, + "name": "Lollipop", + "perc": "0.4" } ] } @@ -208,29 +216,29 @@ var SCREEN_DATA = "data": { "Large": { "hdpi": "0.6", - "ldpi": "0.5", - "mdpi": "5.1", - "tvdpi": "2.3", + "ldpi": "0.4", + "mdpi": "4.8", + "tvdpi": "2.2", "xhdpi": "0.6" }, "Normal": { - "hdpi": "38.7", - "mdpi": "8.4", + "hdpi": "39.3", + "mdpi": "8.1", "tvdpi": "0.1", - "xhdpi": "18.9", - "xxhdpi": "15.8" + "xhdpi": "19.5", + "xxhdpi": "15.9" }, "Small": { - "ldpi": "4.6" + "ldpi": "4.4" }, "Xlarge": { "hdpi": "0.3", - "mdpi": "3.5", + "mdpi": "3.2", "xhdpi": "0.6" } }, - "densitychart": "//chart.googleapis.com/chart?chl=ldpi%7Cmdpi%7Ctvdpi%7Chdpi%7Cxhdpi%7Cxxhdpi&chco=c4df9b%2C6fad0c&chd=t%3A5.1%2C17.0%2C2.4%2C39.6%2C20.1%2C15.8&chf=bg%2Cs%2C00000000&chs=400x250&cht=p", - "layoutchart": "//chart.googleapis.com/chart?chl=Xlarge%7CLarge%7CNormal%7CSmall&chco=c4df9b%2C6fad0c&chd=t%3A4.4%2C9.1%2C81.9%2C4.6&chf=bg%2Cs%2C00000000&chs=400x250&cht=p" + "densitychart": "//chart.googleapis.com/chart?chl=ldpi%7Cmdpi%7Ctvdpi%7Chdpi%7Cxhdpi%7Cxxhdpi&chf=bg%2Cs%2C00000000&chd=t%3A4.8%2C16.1%2C2.3%2C40.2%2C20.7%2C15.9&chco=c4df9b%2C6fad0c&chs=400x250&cht=p", + "layoutchart": "//chart.googleapis.com/chart?chl=Xlarge%7CLarge%7CNormal%7CSmall&chf=bg%2Cs%2C00000000&chd=t%3A4.1%2C8.6%2C82.9%2C4.4&chco=c4df9b%2C6fad0c&chs=400x250&cht=p" } ]; @@ -312,6 +320,11 @@ var VERSION_NAMES = "api":21, "link":"<a href='/about/versions/android-5.0.html'>5.0</a>", "codename":"Lollipop" + }, + { + "api":22, + "link":"<a href='/about/versions/android-5.1.html'>5.1</a>", + "codename":"Lollipop" } ]; diff --git a/docs/html/about/versions/android-5.1.jd b/docs/html/about/versions/android-5.1.jd new file mode 100644 index 0000000..1238680 --- /dev/null +++ b/docs/html/about/versions/android-5.1.jd @@ -0,0 +1,124 @@ +page.title=Android 5.1 APIs +excludeFromSuggestions=true +sdk.platform.version=5.1 +sdk.platform.apiLevel=22 +@jd:body + + +<div id="qv-wrapper"> +<div id="qv"> + +<h2>In this document + <a href="#" onclick="hideNestedItems('#toc44',this);return false;" class="header-toggle"> + <span class="more">show more</span> + <span class="less" style="display:none">show less</span></a></h2> + +<ol id="toc44" class="hide-nested"> + <li><a href="#ApiLevel">Update your target API level</a></li> + + <li><a href="#multisim">Multiple SIM Card Support</a></li> + <li><a href="#http">Deprecated HTTP Classes</a></li> + <li><a href="#carrier">Carrier Services</a></li> +</ol> + +<h2>API Differences</h2> +<ol> +<li><a href="{@docRoot}sdk/api_diff/22/changes.html">API level 21 to 22 »</a> </li> +</ol> + +<h2>See Also</h2> +<ol> +<li><a href="{@docRoot}about/versions/lollipop.html">Android Lollipop Highlights</a> </li> +</ol> + + +</div> +</div> + +<p>API Level: {@sdkPlatformApiLevel}</p> + +<p> + Android 5.1 + (<a href="{@docRoot}reference/android/os/Build.VERSION_CODES.html#LOLLIPOP_MR1">LOLLIPOP_MR1</a>) + is an update to the Lollipop release that offers new features for users and app developers. + This document provides an introduction to the most notable new APIs. +</p> + +<p> + For a high-level look at the new platform features, see the <a href= + "{@docRoot}about/versions/lollipop.html">Android Lollipop highlights</a>. +</p> + + +<h3 id="ApiLevel">Update your target API level</h3> + +<p> + To start building apps for Android 5.1, use the + <a href="{@docRoot}tools/help/sdk-manager.html">SDK Manager</a> to download the Android 5.1 SDK + Platform and System Images. Then set your app development project to use a + <a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#target">{@code targetSdkVersion}</a> + of <code>"{@sdkPlatformApiLevel}"</code>. Install your app on an Android {@sdkPlatformVersion} + system image, test it, then publish the updated app with this change. +</p> + +<p> + You can use Android {@sdkPlatformVersion} APIs while also supporting older versions by adding + conditions to your code that check for the system API level before executing APIs not supported + by your <a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#min">{@code + minSdkVersion}</a>. To learn more about maintaining backward compatibility, read <a href= + "{@docRoot}training/basics/supporting-devices/platforms.html">Supporting Different Platform + Versions</a>. +</p> + +<p> + For more information about how API levels work, read <a href= + "{@docRoot}guide/topics/manifest/uses-sdk-element.html#ApiLevels">What is API Level?</a> +</p> + +<h2 id="multisim">Multiple SIM Card Support</h2> + +<p> + Android 5.1 adds support for using more than one cellular carrier SIM card at a time. This + feature lets users activate and use additional SIMs on devices that have two or more SIM card + slots. +</p> + +<p> + You can access information about the currently active SIM through the {@link + android.telephony.SubscriptionManager} class, including whether or not the device is considered + to be roaming on the current network. This information is useful for developers who want to + throttle their apps' data access down or off for device users who are sensitive to data access + charges. Your app can be alerted to changes in a device's current network connection by + requesting the {@link android.Manifest.permission#READ_PHONE_STATE} permission and setting {@link + android.telephony.SubscriptionManager.OnSubscriptionsChangedListener} on the {@link + android.telephony.SubscriptionManager} object. +</p> + + +<h2 id="http">Deprecated HTTP Classes</h2> + +<p> + The {@code org.apache.http} classes and the {@link android.net.http.AndroidHttpClient} class + have been deprecated in Android 5.1. These classes are no longer being maintained and you should + migrate any app code using these APIs to the {@link java.net.URLConnection} classes as soon as + possible. +</p> + + +<h2 id="carrier">Carrier Services</h2> + +<p> + Android 5.1 provides support for telecommunication service providers to create apps that can + perform carrier provisioning tasks on an Android device. These APIs provide a secure and flexible + way for carrier-developed apps to perform these tasks and be distributed through Google Play. Apps + that use these functions must be signed by a certificate that matches the certificate in the + device's Universal Integrated Circuit Card (UICC). +</p> + +<p> + The carrier service APIs have been added to the {@link android.telephony.TelephonyManager} class, + the {@link android.telephony.SmsManager} class, and the new {@link + android.service.carrier.CarrierMessagingService} class. Apps can check for access to these APIs + by calling the {@link android.telephony.TelephonyManager#hasCarrierPrivileges} method. Apps that + call these APIs without access receive a {@link java.lang.SecurityException}. +</p> diff --git a/docs/html/about/versions/lollipop.jd b/docs/html/about/versions/lollipop.jd index 1ad5d24..8bc7200 100644 --- a/docs/html/about/versions/lollipop.jd +++ b/docs/html/about/versions/lollipop.jd @@ -55,6 +55,11 @@ about Android 5.0 for consumers at <a href="http://www.android.com/versions/lollipop-5-0/" >www.android.com</a>.</p> +<p class="note"> + <strong>Note:</strong> The Android 5.1 Lollipop MR1 update is available with additional features + and fixes. For more information, see the + <a href="{@docRoot}about/versions/android-5.1.html">Android 5.1 API Overview</a>. +</p> <h2 id="Material">Material design</h2> |
