blob: ed78e4d1de912e4271dfd8ac9ebaf6395da3666c [file] [log] [blame]
Robert Ly26115661a2014-06-18 19:56:05 -07001<!DOCTYPE html>
2
Robert Ly26115661a2014-06-18 19:56:05 -07003<html>
4<head>
5
6
7<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8<meta name="viewport" content="width=970" />
9
10<meta name="Description" content="Test and build your apps against the next version of Android to ensure they're ready when the platform officially launches.">
11<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
12<title>Android L Developer Preview | Android Developers</title>
13
14<!-- STYLESHEETS -->
15<link rel="stylesheet"
16href="//fonts.googleapis.com/css?family=Roboto+Condensed">
17<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:light,regular,medium,thin,italic,mediumitalic,bold"
18 title="roboto">
19<link href="/assets/css/default.css" rel="stylesheet" type="text/css">
20
21
22
23<!-- JAVASCRIPT -->
24<script src="//www.google.com/jsapi" type="text/javascript"></script>
25<script src="/assets/js/android_3p-bundle.js" type="text/javascript"></script>
26<script type="text/javascript">
27 var toRoot = "/";
28 var metaTags = [];
29 var devsite = false;
30</script>
31<script src="/assets/js/docs.js" type="text/javascript"></script>
32
33<script>
34 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
35 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
36 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
37 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
38
39 ga('create', 'UA-5831155-1', 'android.com');
40 ga('create', 'UA-49880327-2', 'android.com', {'name': 'universal'}); // New tracker);
41 ga('send', 'pageview');
42 ga('universal.send', 'pageview'); // Send page view for new tracker.
43</script>
44
45</head>
46
Robert Ly26115661a2014-06-18 19:56:05 -070047
smain@google.com271078f52014-10-09 17:00:20 -070048<body class="gc-documentation" itemscope="" itemtype="http://schema.org/Article">
Robert Ly26115661a2014-06-18 19:56:05 -070049
Joe Fernandezf50f51c2014-06-27 17:00:59 -070050
Robert Ly26115661a2014-06-18 19:56:05 -070051<a name="top"></a>
smain@google.com271078f52014-10-09 17:00:20 -070052<a name="download"></a>
Robert Ly26115661a2014-06-18 19:56:05 -070053<div id="body-content">
smain@google.com271078f52014-10-09 17:00:20 -070054<div class="fullpage">
Robert Ly26115661a2014-06-18 19:56:05 -070055<div id="jd-content">
56 <div class="jd-descr" itemprop="articleBody">
smain@google.com271078f52014-10-09 17:00:20 -070057<style>
58body,html, #qv {background-color:#e9e9e9}
59
60#qv * { font-weight:bold;}
61
Robert Ly26115661a2014-06-18 19:56:05 -070062.fullpage>#footer,
63#jd-content>.content-footer.wrap {
64 display:none;
65}
Robert Ly26115661a2014-06-18 19:56:05 -070066
Robert Ly26115661a2014-06-18 19:56:05 -070067.content-footer {
68 display: none;
69}
70</style>
71
smain@google.com271078f52014-10-09 17:00:20 -070072 <div style="border-bottom: 1px solid #a5c43a; position: absolute; left: 0; right: 0; top: 0; z-index:99">
73 <div class="wrap" style="position: relative; height: 45px; padding: 0 20px;">
74 <a href="/index.html" style="position:absolute;top:8px">
75 <img src="/assets/images/dac_logo.png" srcset="/assets/images/dac_logo@2x.png 2x" width="123" height="25" alt="Android Developers home page">
smain@google.com075531a2014-10-14 19:34:43 -070076 </a>
77 </div>
78 </div>
79
80
smain@google.com271078f52014-10-09 17:00:20 -070081
82
83
84
85
86
87
88
89
90
91
92 <div class="landing-rest-of-page" style="position:relative;">
93
94
95
96
97
98
99
100
101 <div class="wrap" id="tos" style="display:none;padding-top:90px">
102
103 <p class="sdk-terms-intro">Before downloading the Android Preview system image,
104 you must agree to the following terms and conditions.</p>
105
106 <h2 class="norule">Terms and Conditions</h2>
107 <div class="sdk-terms" onfocus="this.blur()" style="width:100%">
108This is the Android SDK Preview License Agreement (the “License Agreement”).
109
1101. Introduction
111
1121.1 The Android SDK Preview (referred to in the License Agreement as the “Preview” and specifically including the Android system files, packaged APIs, and Preview library files, if and when they are made available) is licensed to you subject to the terms of the License Agreement. The License Agreement forms a legally binding contract between you and Google in relation to your use of the Preview.
113
1141.2 "Android" means the Android software stack for devices, as made available under the Android Open Source Project, which is located at the following URL: http://source.android.com/, as updated from time to time.
115
1161.3 "Google" means Google Inc., a Delaware corporation with principal place of business at 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States.
117
1182. Accepting the License Agreement
119
1202.1 In order to use the Preview, you must first agree to the License Agreement. You may not use the Preview if you do not accept the License Agreement.
121
1222.2 By clicking to accept and/or using the Preview, you hereby agree to the terms of the License Agreement.
123
1242.3 You may not use the Preview and may not accept the License Agreement if you are a person barred from receiving the Preview under the laws of the United States or other countries including the country in which you are resident or from which you use the Preview.
125
1262.4 If you will use the Preview internally within your company or organization you agree to be bound by the License Agreement on behalf of your employer or other entity, and you represent and warrant that you have full legal authority to bind your employer or such entity to the License Agreement. If you do not have the requisite authority, you may not accept the License Agreement or use the Preview on behalf of your employer or other entity.
127
1283. Preview License from Google
129
1303.1 Subject to the terms of the License Agreement, Google grants you a royalty-free, non-assignable, non-exclusive, non-sublicensable, limited, revocable license to use the Preview, personally or internally within your company or organization, solely to develop applications to run on the Android platform.
131
1323.2 You agree that Google or third parties owns all legal right, title and interest in and to the Preview, including any Intellectual Property Rights that subsist in the Preview. "Intellectual Property Rights" means any and all rights under patent law, copyright law, trade secret law, trademark law, and any and all other proprietary rights. Google reserves all rights not expressly granted to you.
133
1343.3 You may not use the Preview for any purpose not expressly permitted by the License Agreement. Except to the extent required by applicable third party licenses, you may not: (a) copy (except for backup purposes), modify, adapt, redistribute, decompile, reverse engineer, disassemble, or create derivative works of the Preview or any part of the Preview; or (b) load any part of the Preview onto a mobile handset or any other hardware device except a personal computer, combine any part of the Preview with other software, or distribute any software or device incorporating a part of the Preview.
135
1363.4 You agree that you will not take any actions that may cause or result in the fragmentation of Android, including but not limited to distributing, participating in the creation of, or promoting in any way a software development kit derived from the Preview.
137
1383.5 Use, reproduction and distribution of components of the Preview licensed under an open source software license are governed solely by the terms of that open source software license and not the License Agreement. You agree to remain a licensee in good standing in regard to such open source software licenses under all the rights granted and to refrain from any actions that may terminate, suspend, or breach such rights.
139
1403.6 You agree that the form and nature of the Preview that Google provides may change without prior notice to you and that future versions of the Preview may be incompatible with applications developed on previous versions of the Preview. You agree that Google may stop (permanently or temporarily) providing the Preview (or any features within the Preview) to you or to users generally at Google's sole discretion, without prior notice to you.
141
1423.7 Nothing in the License Agreement gives you a right to use any of Google's trade names, trademarks, service marks, logos, domain names, or other distinctive brand features.
143
1443.8 You agree that you will not remove, obscure, or alter any proprietary rights notices (including copyright and trademark notices) that may be affixed to or contained within the Preview.
145
1464. Use of the Preview by You
147
1484.1 Google agrees that nothing in the License Agreement gives Google any right, title or interest from you (or your licensors) under the License Agreement in or to any software applications that you develop using the Preview, including any intellectual property rights that subsist in those applications.
149
1504.2 You agree to use the Preview and write applications only for purposes that are permitted by (a) the License Agreement, and (b) any applicable law, regulation or generally accepted practices or guidelines in the relevant jurisdictions (including any laws regarding the export of data or software to and from the United States or other relevant countries).
151
1524.3 You agree that if you use the Preview to develop applications, you will protect the privacy and legal rights of users. If users provide you with user names, passwords, or other login information or personal information, you must make the users aware that the information will be available to your application, and you must provide legally adequate privacy notice and protection for those users. If your application stores personal or sensitive information provided by users, it must do so securely. If users provide you with Google Account information, your application may only use that information to access the user's Google Account when, and for the limited purposes for which, each user has given you permission to do so.
153
1544.4 You agree that you will not engage in any activity with the Preview, including the development or distribution of an application, that interferes with, disrupts, damages, or accesses in an unauthorized manner the servers, networks, or other properties or services of Google or any third party.
155
1564.5 You agree that you are solely responsible for (and that Google has no responsibility to you or to any third party for) any data, content, or resources that you create, transmit or display through Android and/or applications for Android, and for the consequences of your actions (including any loss or damage which Google may suffer) by doing so.
157
1584.6 You agree that you are solely responsible for (and that Google has no responsibility to you or to any third party for) any breach of your obligations under the License Agreement, any applicable third party contract or Terms of Service, or any applicable law or regulation, and for the consequences (including any loss or damage which Google or any third party may suffer) of any such breach.
159
1604.7 The Preview is in development, and your testing and feedback are an important part of the development process. By using the Preview, you acknowledge that implementation of some features are still under development and that you should not rely on the Preview having the full functionality of a stable release. You agree not to publicly distribute or ship any application using this Preview as this Preview will no longer be supported after the official Android SDK is released.
161
1625. Your Developer Credentials
163
1645.1 You agree that you are responsible for maintaining the confidentiality of any developer credentials that may be issued to you by Google or which you may choose yourself and that you will be solely responsible for all applications that are developed under your developer credentials.
165
1666. Privacy and Information
167
1686.1 In order to continually innovate and improve the Preview, Google may collect certain usage statistics from the software including but not limited to a unique identifier, associated IP address, version number of the software, and information on which tools and/or services in the Preview are being used and how they are being used. Before any of this information is collected, the Preview will notify you and seek your consent. If you withhold consent, the information will not be collected.
169
1706.2 The data collected is examined in the aggregate to improve the Preview and is maintained in accordance with Google's Privacy Policy located at http://www.google.com/policies/privacy/.
171
1727. Third Party Applications
173
1747.1 If you use the Preview to run applications developed by a third party or that access data, content or resources provided by a third party, you agree that Google is not responsible for those applications, data, content, or resources. You understand that all data, content or resources which you may access through such third party applications are the sole responsibility of the person from which they originated and that Google is not liable for any loss or damage that you may experience as a result of the use or access of any of those third party applications, data, content, or resources.
175
1767.2 You should be aware the data, content, and resources presented to you through such a third party application may be protected by intellectual property rights which are owned by the providers (or by other persons or companies on their behalf). You may not modify, rent, lease, loan, sell, distribute or create derivative works based on these data, content, or resources (either in whole or in part) unless you have been specifically given permission to do so by the relevant owners.
177
1787.3 You acknowledge that your use of such third party applications, data, content, or resources may be subject to separate terms between you and the relevant third party.
179
1808. Using Google APIs
181
1828.1 Google APIs
183
1848.1.1 If you use any API to retrieve data from Google, you acknowledge that the data may be protected by intellectual property rights which are owned by Google or those parties that provide the data (or by other persons or companies on their behalf). Your use of any such API may be subject to additional Terms of Service. You may not modify, rent, lease, loan, sell, distribute or create derivative works based on this data (either in whole or in part) unless allowed by the relevant Terms of Service.
185
1868.1.2 If you use any API to retrieve a user's data from Google, you acknowledge and agree that you shall retrieve data only with the user's explicit consent and only when, and for the limited purposes for which, the user has given you permission to do so.
187
1889. Terminating the License Agreement
189
1909.1 the License Agreement will continue to apply until terminated by either you or Google as set out below.
191
1929.2 If you want to terminate the License Agreement, you may do so by ceasing your use of the Preview and any relevant developer credentials.
193
1949.3 Google may at any time, terminate the License Agreement, with or without cause, upon notice to you.
195
1969.4 The License Agreement will automatically terminate without notice or other action upon the earlier of:
197(A) when Google ceases to provide the Preview or certain parts of the Preview to users in the country in which you are resident or from which you use the service; and
198(B) Google issues a final release version of the Android SDK.
199
2009.5 When the License Agreement is terminated, the license granted to you in the License Agreement will terminate, you will immediately cease all use of the Preview, and the provisions of paragraphs 10, 11, 12 and 14 shall survive indefinitely.
201
20210. DISCLAIMERS
203
20410.1 YOU EXPRESSLY UNDERSTAND AND AGREE THAT YOUR USE OF THE PREVIEW IS AT YOUR SOLE RISK AND THAT THE PREVIEW IS PROVIDED "AS IS" AND "AS AVAILABLE" WITHOUT WARRANTY OF ANY KIND FROM GOOGLE.
205
20610.2 YOUR USE OF THE PREVIEW AND ANY MATERIAL DOWNLOADED OR OTHERWISE OBTAINED THROUGH THE USE OF THE PREVIEW IS AT YOUR OWN DISCRETION AND RISK AND YOU ARE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR OTHER DEVICE OR LOSS OF DATA THAT RESULTS FROM SUCH USE. WITHOUT LIMITING THE FOREGOING, YOU UNDERSTAND THAT THE PREVIEW IS NOT A STABLE RELEASE AND MAY CONTAIN ERRORS, DEFECTS AND SECURITY VULNERABILITIES THAT CAN RESULT IN SIGNIFICANT DAMAGE, INCLUDING THE COMPLETE, IRRECOVERABLE LOSS OF USE OF YOUR COMPUTER SYSTEM OR OTHER DEVICE.
207
20810.3 GOOGLE FURTHER EXPRESSLY DISCLAIMS ALL WARRANTIES AND CONDITIONS OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
209
21011. LIMITATION OF LIABILITY
211
21211.1 YOU EXPRESSLY UNDERSTAND AND AGREE THAT GOOGLE, ITS SUBSIDIARIES AND AFFILIATES, AND ITS LICENSORS SHALL NOT BE LIABLE TO YOU UNDER ANY THEORY OF LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR EXEMPLARY DAMAGES THAT MAY BE INCURRED BY YOU, INCLUDING ANY LOSS OF DATA, WHETHER OR NOT GOOGLE OR ITS REPRESENTATIVES HAVE BEEN ADVISED OF OR SHOULD HAVE BEEN AWARE OF THE POSSIBILITY OF ANY SUCH LOSSES ARISING.
213
21412. Indemnification
215
21612.1 To the maximum extent permitted by law, you agree to defend, indemnify and hold harmless Google, its affiliates and their respective directors, officers, employees and agents from and against any and all claims, actions, suits or proceedings, as well as any and all losses, liabilities, damages, costs and expenses (including reasonable attorneys’ fees) arising out of or accruing from (a) your use of the Preview, (b) any application you develop on the Preview that infringes any Intellectual Property Rights of any person or defames any person or violates their rights of publicity or privacy, and (c) any non-compliance by you of the License Agreement.
217
21813. Changes to the License Agreement
219
22013.1 Google may make changes to the License Agreement as it distributes new versions of the Preview. When these changes are made, Google will make a new version of the License Agreement available on the website where the Preview is made available.
221
22214. General Legal Terms
223
22414.1 the License Agreement constitutes the whole legal agreement between you and Google and governs your use of the Preview (excluding any services which Google may provide to you under a separate written agreement), and completely replaces any prior agreements between you and Google in relation to the Preview.
225
22614.2 You agree that if Google does not exercise or enforce any legal right or remedy which is contained in the License Agreement (or which Google has the benefit of under any applicable law), this will not be taken to be a formal waiver of Google's rights and that those rights or remedies will still be available to Google.
227
22814.3 If any court of law, having the jurisdiction to decide on this matter, rules that any provision of the License Agreement is invalid, then that provision will be removed from the License Agreement without affecting the rest of the License Agreement. The remaining provisions of the License Agreement will continue to be valid and enforceable.
229
23014.4 You acknowledge and agree that each member of the group of companies of which Google is the parent shall be third party beneficiaries to the License Agreement and that such other companies shall be entitled to directly enforce, and rely upon, any provision of the License Agreement that confers a benefit on (or rights in favor of) them. Other than this, no other person or company shall be third party beneficiaries to the License Agreement.
231
23214.5 EXPORT RESTRICTIONS. THE PREVIEW IS SUBJECT TO UNITED STATES EXPORT LAWS AND REGULATIONS. YOU MUST COMPLY WITH ALL DOMESTIC AND INTERNATIONAL EXPORT LAWS AND REGULATIONS THAT APPLY TO THE PREVIEW. THESE LAWS INCLUDE RESTRICTIONS ON DESTINATIONS, END USERS AND END USE.
233
23414.6 The License Agreement may not be assigned or transferred by you without the prior written approval of Google, and any attempted assignment without such approval will be void. You shall not delegate your responsibilities or obligations under the License Agreement without the prior written approval of Google.
235
23614.7 The License Agreement, and your relationship with Google under the License Agreement, shall be governed by the laws of the State of California without regard to its conflict of laws provisions. You and Google agree to submit to the exclusive jurisdiction of the courts located within the county of Santa Clara, California to resolve any legal matter arising from the License Agreement. Notwithstanding this, you agree that Google shall still be allowed to apply for injunctive remedies (or an equivalent type of urgent legal relief) in any jurisdiction.
237 </div><!-- sdk terms -->
238
239
240
241 <div id="sdk-terms-form">
242 <p>
243 <input id="agree" type="checkbox" name="agree" value="1" onclick="onAgreeChecked()" />
244 <label id="agreeLabel" for="agree">I have read and agree with the above terms and conditions</label>
245 </p>
246 <p><a href="" class="button disabled" id="downloadForRealz" onclick="return onDownloadForRealz(this);"></a></p>
247 </div>
248
249
250 </div><!-- end TOS -->
251
252
253
254
255
256
257
258 <div class="landing-section" id="landing-wrapper" style="padding:55px 10px 0">
259 <div class="landing-section-header" style="margin:0">
Robert Ly26115661a2014-06-18 19:56:05 -0700260 <div class="landing-h1">Android L Developer Preview</div>
smain@google.com271078f52014-10-09 17:00:20 -0700261 <div class="landing-subhead" style="padding-bottom:40px">
262 Final APIs now available!
Robert Ly26115661a2014-06-18 19:56:05 -0700263 </div>
264 </div>
smain@google.com271078f52014-10-09 17:00:20 -0700265 <div class="wrap" style="padding:20px; position:relative">
266
267 <img src="/images/home/l-hero_2x.png"
268 srcset="/images/home/l-hero.png 1x, /images/home/l-hero_2x.png 2x"
269 style=" margin:-5px -30px 0 0;float:right" alt="" width="510">
270
271 <a href="/about/versions/android-5.0.html" class="landing-button landing-primary"
272 style="position:absolute;z-index:100;right:215px;top:375px">Android 5.0 API Overview</a>
273
274 <div style="width:440px">
275<p>Android 5.0 (Lollipop) is almost here and users will begin receiving
276device updates in November. To help you prepare, the Android 5.0 SDK is now available
277with final APIs.</p>
278
279<p>Since the L Developer Preview began, various APIs and behaviors have changed,
280so if you've been using the Preview SDK
281you should update now to test your apps and take advantage of new features.</p>
282
283
284 <p>To get the latest Android 5.0 SDK:</p>
285 <ol>
286 <li>Start the <a href="/tools/help/sdk-manager.html">Android SDK Manager</a>.</li>
287 <li>In the <b>Tools</b> section, select the latest <b>SDK Tools</b>,
288 <b>SDK Platform-tools</b>, and <b>SDK Build-tools</b>.</li>
289 <!-- Android L not yet showing up in Android SDK Manager... -->
290 <li>Select everything under the <b>Android 5.0</b> section, then
291 click <b>Install packages...</b></li>
292 <li>Accept the licensing agreement for the packages, then click
293 <b>Install</b>.</li>
294 <li>If you previously installed the Android L Preview SDK, select all those
295 packages in the SDK Manager and click <strong>Delete packages</strong>.
296 </ol>
297 <p>Now you're ready to develop and test on Android 5.0 with your normal workflow
298 and begin publishing app updates to Google Play.
299 </div>
300
301 <h2 id="Start" class="norule" style="margin:60px 0 0 0">Get Started on Android 5.0</h2>
Robert Ly26115661a2014-06-18 19:56:05 -0700302 </div> <!-- end .wrap -->
smain@google.com271078f52014-10-09 17:00:20 -0700303
304
305
306 <div class="wrap" style="background-color:#fff;padding:20px;position:relative">
307
308 <div id="qv-wrapper">
309 <div id="qv">
310 <h2>More about Android 5.0</h2>
311 <ul>
312 <li><a href="http://android-developers.blogspot.com/">Android 5.0 announcement</a></li>
313 <li><a href="/about/versions/android-5.0.html">Android 5.0 API Overview</a></li>
314 <li><a href="/sdk/api_diff/21/changes.html">Android 5.0 API Diff Report</a></li>
smain@google.comf7a7d6d2014-10-17 01:31:24 -0700315 <li><a href="/samples/new/index.html">Android 5.0 API Samples</a></li>
smain@google.com271078f52014-10-09 17:00:20 -0700316 </ul>
317 </div>
318 </div>
319
320 <p>Now that Android 5.0 APIs are final:</p>
321 <ul>
322 <li>The API level for Android 5.0 is 21, so be sure to update your
323 app's manifest file to set <a href="/guide/topics/manifest/uses-sdk-element.html#target"
324 ><code>targetSdkVersion</code></a> to
325 <code>"21"</code> when you begin testing:
326 <pre>&lt;uses-sdk android:targetSdkVersion="21" ... /></pre>
327 </li>
328 <li>Google Play now accepts APKs with <a
329 href="/guide/topics/manifest/uses-sdk-element.html#min"><code>minSdkVersion</code></a> or
330 <a href="/guide/topics/manifest/uses-sdk-element.html#target"
331 ><code>targetSdkVersion</code></a> set
332 to <code>"21"</code>, so you can upload your updated apps today.</li>
333 </ul>
334
335 <p>Although the APIs for Android 5.0 are now final, the system image for end-users
336 is not available yet. So the following preview system images are available for you to
337 test your apps on a Nexus 5 or Nexus 7. These are non-final
338 builds and their use is governed by the <a href="/preview/license.html">Android L
339 Preview License Agreement</a>.</p>
340
341 <table >
342 <tbody><tr>
343 <th scope="col">Device</th>
344 <th scope="col">Download</th>
345 <th scope="col">Checksum</th>
346 </tr>
347 <tr id="hammerhead">
348 <td>Nexus 5 (GSM/LTE) <br>"hammerhead"</td>
349 <td><a href="#download" onclick="onDownload(this)">hammerhead-lpx13d-preview-f7596f51.tgz</a></td>
350 <td>MD5: <code>8d92596aa038203fc6c8ff40a0e8b560</code>
351 <br>SHA-1: <code>f7596f518a8a429f03de5bf8152fa90e738228dd</code></td>
352 </tr>
353 <tr id="razor">
354 <td>Nexus 7 [2013] (Wi-Fi) <br>"razor"</td>
355 <td><a href="#download" onclick="onDownload(this)">razor-lpx13d-preview-ae4f461f.tgz</a></td>
356 <td>MD5: <code>b2c567518d203b487cb2ac28d25b0a54</code>
357 <br><nobr>SHA-1: <code>ae4f461fabae5ff92eae0c252c34bb26d877e528</code></nobr></td>
358 </tr>
359 </tbody></table>
360 </li>
361
362 <p>For details about how to flash the system image to your device, see the
363 <a href="https://developers.google.com/android/nexus/images#instructions">flashing
364 instructions</a>.</p>
365
366 <p>If you want to uninstall the preview system image and flash your device to factory
367 specifications, download the appropriate image from
368 <a href="http://developers.google.com/android/nexus/images">Factory Images for Nexus
369 Devices</a> and follow the instructions on that page.</p>
370
371 <p class="note"><strong>Note:</strong> When the final Android 5.0 system image becomes
372 available, it will be posted on the
373 <a href="http://developers.google.com/android/nexus/images">Factory Images for Nexus
374 Devices</a> page. To continue development (and receive future system updates),
375 you should update your device with that image as soon as possible.</p>
376
377 </div> <!-- end .wrap -->
378
379
380
381
382
383
384
385
386 <div class="wrap" style="padding:20px; position:relative">
387 <h2 id="Material" class="norule" style="margin:40px 0 0 0">Design with Material</h2>
388 </div>
389
390 <div class="wrap" style="background-color:#fff;padding:20px;position:relative">
391 <img src="images/material-layers.png" width="240"
392 style="position:absolute;right:20px;top:-50px">
393
394 <div id="qv-wrapper" style="margin-top:120px">
395 <div id="qv">
396
397 <h2>More about Material Design</h2>
398 <ul>
399 <li><a href="http://www.google.com/design/spec/material-design/introduction.html">Material
400 Design Spec</a></li>
401 <li><a href="/design/material/index.html">Android Material Design</a></li>
402 <li><a href="/training/material/index.html">Creating Apps with Material Design</a>
403 </ul>
404 </div>
405 </div>
406
407
408<p>Material design is a complete design philosophy for visual, motion, and interaction design
409across platforms and devices. The <a href=
410"http://www.google.com/design/spec/material-design/introduction.html">material design specification
411(preview)</a> provides all the details for designers.</p>
412
413
414 <p>To get started with Material design in your Android app, update
415 your <a href="/guide/topics/manifest/uses-sdk-element.html#target"
416 ><code>targetSdkVersion</code></a> to <code>"21"</code> and apply the new
417 <a href="/reference/android/R.style.html#Theme_Material"
418 ><code>Material</code></a> theme. For example, when creating
419 a <a href="/guide/topics/ui/themes.html">custom theme</a>
420 for your app, open your project's <code>res/values/styles.xml</code> file
421 and extend the <a href="/reference/android/R.style.html#Theme_Material"
422 ><code>Material</code></a> theme:</p>
423<pre>
424&lt;resources>
425 &lt;style name="AppTheme" parent="android:Theme.Material">
426 &lt;!-- Customize the Material elements here -->
427 &lt;/style>
428&lt;/resources>
429</pre>
430<p>Then apply your custom theme to your application in the manifest file:</p>
431<pre>
432&lt;application android:theme="&#64;style/AppTheme">
433</pre>
434<p>Material design is more than just the UI theme, though. It's also about the way the app
435 behaves&mdash;how elements move and transform when the user interacts with them. So Android 5.0
436 and the <a href="/tools/support-library/features.html#v7">v7 support library</a> provide new
437 widgets and animation APIs that allow you to
438 build interaction patterns described in the
439 <a href="http://www.google.com/design/spec/material-design/introduction.html">Material design
440 specification</a>.</p>
441
442<p>All the Material design elements and interaction patterns provided by the UI styles and widgets
443are flexible, so you can adopt only what's appropriate for your app and retain a unique identity
444and experience for your product.</p>
445
446<p>And Material design on Android isn't just for Android 5.0. The
447 <a href="/tools/support-library/features.html#v7">v7 support library</a> has been significantly
448 updated in revision 21 to make many of the Material design elements available when
449 running on older versions of the platform.</p>
450
451<p>For many more details about how to implement the Material look and feel,
452 see <a href="/training/material/index.html">Creating Apps with Material
453 Design</a>.</p>
454
455
456 </div>
457
458
459
460
461
462
463
464
465
466
467
468 <div class="wrap" style="padding:20px; position:relative">
469 <h2 id="TV" class="norule" style="margin:40px 0 0 0">Build for Android TV</h2>
470 </div>
471
472 <div class="wrap" style="background-color:#fff;padding:20px;position:relative">
473 <img src="/tv/images/components.png" width="240"
474 style="position:absolute;right:20px;top:-50px">
475
476 <div id="qv-wrapper" style="margin-top:120px">
477 <div id="qv">
478
479 <h2>More about Android TV</h2>
480 <ul>
481 <li><a href="/design/tv/index.html">Android TV Design</a></li>
482 <li><a href="/training/tv/start/index.html">Building Apps for Android TV</a></li>
483 <li><a href="/training/tv/games/index.html">Building TV Games</a></li>
484 <li><a href="/training/tv/playback/index.html">Building TV Playback Apps</a></li>
485 <li><a href="/distribute/essentials/quality/tv.html">TV App Quality</a></li>
486 </ul>
487 </div>
488 </div>
489
490<p>Android 5.0 provides a new platform for users to experience your app on a big screen. The
491Android TV experience is centered around a simplified home screen that allows users to discover
492your app's content with personalized recommendations and voice search, or select your app to launch
493into your fullscreen experience.</p>
494
495
496<p>Making your app available on Android TV does not require that you build an entirely new app.
497Android TV is simply another form factor for the Android platform, so you can deliver the same APK
498that you provide for phones and tablets to TVs through Google Play. However, to make your app
499available on Android TV, you'll need to make some optimizations such as adding layouts
500for the big screen and adding support for remote control input. For more information about design
501guidelines, see <a href="/distribute/essentials/quality/tv.html">TV App Quality</a>.</p>
502
503<p class="note"><strong>Note:</strong> Google Play for Android TV will officially
504open for apps on November 3.</p>
505
506<p>Android TV is also great new opportunity for Android games. If you'd like to make your games
507available on Android TV, be sure to optimize the user experience for the big screen by following
508the recommendations in <a href="/training/tv/games/index.html">Building TV Games</a>.</p>
509
510
511 <p>To get started on Android TV, you need:</p>
512 <ul>
513 <li>The Android 5.0 SDK packages from the
514 <a href="/tools/help/sdk-manager.html">Android SDK Manager</a>,
515 including the <strong>Android TV System Image</strong> so you can create an
516 Android TV emulator.</li>
517 <li>An activity that's launchable from the Android TV home screen. This requires that you
518 add the <a href="/reference/android/content/Intent.html#CATEGORY_LEANBACK_LAUNCHER"
519 ><code>LEANBACK_LAUNCHER</code></a> category to one of your activities. For example:
520<pre>
521&lt;activity ... >
522 &lt;intent-filter>
523 &lt;action android:name="android.intent.action.MAIN" />
524 &lt;category android:name="android.intent.category.LEANBACK_LAUNCHER" />
525 &lt;/intent-filter>
526&lt;/activity>
527</pre>
528 </li>
529
530 <li>For a set of default styles that optimize your UI for the TV's
531 <em>leanback user experience</em>,
532 you should also apply the <a
533 href="/reference/android/support/v17/leanback/R.style.html#Theme_Leanback"
534 ><code>Leanback</code></a> theme to your activity:
535<pre>
536&lt;activity android:theme="@style/Theme.Leanback" ... >
537</pre>
538 </li>
539
540 </ul>
541 <p>You should also take advantage of the <a
smain@google.comf7a7d6d2014-10-17 01:31:24 -0700542 href="/tools/support-library/features.html#v17-leanback">v17 leanback library</a>, which
smain@google.com271078f52014-10-09 17:00:20 -0700543 provides the <a href="/reference/android/support/v17/leanback/R.style.html#Theme_Leanback"
544 ><code>Leanback</code></a> theme shown above, plus several widgets designed to
545 make your UI beautiful and easy to navigate on the big screen, such as a widget that creates
546 a set of large horizontal card views.</p>
547
548 <p>For more information about setting up a project for your TV app, building
549 TV layouts, and handling controller input,
550 see <a href="/training/tv/start/index.html">Building
551 TV Apps</a>.</p>
552 </div>
553
554
555
556
557
558
559
560
Robert Ly26115661a2014-06-18 19:56:05 -0700561 </div> <!-- end .landing-section -->
562
563
564
Robert Ly26115661a2014-06-18 19:56:05 -0700565
Robert Ly26115661a2014-06-18 19:56:05 -0700566
smain@google.com271078f52014-10-09 17:00:20 -0700567
568
569
570 <!-- spacer -->
571 <div class="wrap" style="padding:20px; position:relative">
572 <p>&nbsp;</p>
Robert Ly26115661a2014-06-18 19:56:05 -0700573 </div>
smain@google.com271078f52014-10-09 17:00:20 -0700574
575
576
577 <div id="footer" class="wrap" style="width:940px;position:relative;">
Robert Ly26115661a2014-06-18 19:56:05 -0700578 <div id="copyright">
579 Except as noted, this content is
580 licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
581 Creative Commons Attribution 2.5</a>. For details and
smain@google.com271078f52014-10-09 17:00:20 -0700582 restrictions, see the <a href="https://developer.android.com/license.html">Content
Robert Ly26115661a2014-06-18 19:56:05 -0700583 License</a>.
584 </div>
585 </div>
586 </div> <!-- end landing-body-content -->
587
Robert Ly26115661a2014-06-18 19:56:05 -0700588 </div>
589
smain@google.com271078f52014-10-09 17:00:20 -0700590 <div class="content-footer wrap" itemscope=""
591 itemtype="http://schema.org/SiteNavigationElement">
Joe Fernandezf50f51c2014-06-27 17:00:59 -0700592
Robert Ly26115661a2014-06-18 19:56:05 -0700593 <div class="paging-links layout-content-col col-10">
Joe Fernandezf50f51c2014-06-27 17:00:59 -0700594
Robert Ly26115661a2014-06-18 19:56:05 -0700595 </div>
Joe Fernandezf50f51c2014-06-27 17:00:59 -0700596
Robert Ly26115661a2014-06-18 19:56:05 -0700597 </div>
598
Joe Fernandezf50f51c2014-06-27 17:00:59 -0700599
600
Robert Ly26115661a2014-06-18 19:56:05 -0700601
602 </div> <!-- end jd-content -->
603
604<div id="footer" class="wrap" style="width:940px">
Joe Fernandezf50f51c2014-06-27 17:00:59 -0700605
Robert Ly26115661a2014-06-18 19:56:05 -0700606
607 <div id="copyright">
Joe Fernandezf50f51c2014-06-27 17:00:59 -0700608
609 Except as noted, this content is
Robert Ly26115661a2014-06-18 19:56:05 -0700610 licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
Joe Fernandezf50f51c2014-06-27 17:00:59 -0700611 Creative Commons Attribution 2.5</a>. For details and
smain@google.com271078f52014-10-09 17:00:20 -0700612 restrictions, see the <a href="https://developer.android.com/license.html">Content
Robert Ly26115661a2014-06-18 19:56:05 -0700613 License</a>.
614 </div>
615
616
617</div> <!-- end footer -->
618</div><!-- end doc-content -->
619
Joe Fernandezf50f51c2014-06-27 17:00:59 -0700620</div> <!-- end body-content -->
Robert Ly26115661a2014-06-18 19:56:05 -0700621
622
smain@google.com271078f52014-10-09 17:00:20 -0700623<script>
624 var urlRoot = "http://storage.googleapis.com/androiddevelopers/finalpreview/";
625 function onDownload(link) {
626
627 $("#downloadForRealz").html("Download " + $(link).text());
628 $("#downloadForRealz").attr('href', urlRoot + $(link).text());
629
630 $("#tos").show();
631 $("#landing-wrapper").hide();
632
633 return true;
634 }
Robert Ly26115661a2014-06-18 19:56:05 -0700635
636
smain@google.com271078f52014-10-09 17:00:20 -0700637 function onAgreeChecked() {
638 /* verify that the TOS is agreed */
639 if ($("input#agree").is(":checked")) {
640 /* reveal the download button */
641 $("a#downloadForRealz").removeClass('disabled');
642 } else {
643 $("a#downloadForRealz").addClass('disabled');
644 }
645 }
Robert Ly26115661a2014-06-18 19:56:05 -0700646
smain@google.com271078f52014-10-09 17:00:20 -0700647 function onDownloadForRealz(link) {
648 if ($("input#agree").is(':checked')) {
649 $("#tos").fadeOut('fast');
650 $("#landing-wrapper").fadeIn('fast');
651 ga('send', 'event', 'L Preview', 'System Image', $("#downloadForRealz").html());
652 location.hash = "";
653 // reset the checkbox for future downloads
654 $("#agree").trigger('click');
655 $("a#downloadForRealz").addClass('disabled');
656 return true;
657 } else {
658 $("label#agreeLabel").parent().stop().animate({color: "#258AAF"}, 200,
659 function() {$("label#agreeLabel").parent().stop().animate({color: "#222"}, 200)}
660 );
661 return false;
662 }
663 }
664
smain@google.com271078f52014-10-09 17:00:20 -0700665</script>
666
Robert Ly26115661a2014-06-18 19:56:05 -0700667
668</body>
smain@google.com271078f52014-10-09 17:00:20 -0700669</html>