1e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandezpage.title=What's New
2e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
3e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez@jd:body
4e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
5fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<p>The following code samples were recently published. You can
6e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandezdownload them in the Android SDK Manager under the <b>SDK Samples</b> component
7fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johnsfor API 21.</p>
8e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
9e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<p class="note">
10fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns  <strong>Note:</strong> The downloadable projects are designed
11e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez   for use with Gradle and Android Studio.
12e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</p>
13e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
14c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<!-- NOTE TO EDITORS: add most recent samples first -->
15e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
16fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="MediaBrowserService"><a href="/samples/MediaBrowserService/index.html">Media Browser Service</a></h3>
17e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
18c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
19c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample is a simple audio media app that exposes its media
20c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginilibrary and provides metadata and playback controls through the new
21c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiMediaBrowserService and MediaSession APIs from API 21.
22c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThe sample is compatible with Android Auto and also provides a basic UI
23c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiwhen not connected to a car.
24c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
25e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
26c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p class="note">
27c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <strong>Note:</strong> This sample is compatible with <a
28c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  href="http://android.com/auto">Android Auto</a>.
29c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
30e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
31e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
32fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="MessagingService"><a href="/samples/MessagingService/index.html">Messaging Service</a></h3>
33e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
34c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
35c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample shows a simple service that sends notifications using
36c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiNotificationCompat. In addition to sending a notification, it also extends
37c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginithe notification with a CarExtender to make it compatible with Android Auto.
38c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiEach unread conversation from a user is sent as a distinct notification.
39c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
40e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
41c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p class="note">
42c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <strong>Note:</strong> This sample is compatible with <a
43c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  href="http://android.com/auto">Android Auto</a>.
44c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
45e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
46e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
47fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="SpeedTracker"><a href="/samples/SpeedTracker/index.html">Speed Tracker (Wear)</a></h3>
48e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
49c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
50c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample uses the FusedLocation APIs of Google Play Services on Android Wear 
51c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginidevices that have a hardware GPS built in. In those cases, this sample provides
52c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginia simple screen that shows the current speed of the wearable device. User can
53c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiset a speed limit and if the speed approaches that limit, it changes the color
54c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginito yellow and if it exceeds the limit, it turns red. User can also enable
55c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginirecording of coordinates and when it pairs back with the phone, this data
56c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiis synced with the phone component of the app and user can see a track
57c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginimade of those coordinates on a map on the phone.
58c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
59e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
60e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
61fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="AppRestrictionSchema"><a href="/samples/AppRestrictionSchema/index.html">AppRestrictionSchema</a></h3>
62e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
63e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<p>
64c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample shows how to use app restrictions. This application has one boolean
65c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginirestriction with a key "can_say_hello" that defines whether the only feature of this
66c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiapp (press the button to show "Hello" message) is enabled or disabled. Use
67c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiAppRestrictionEnforcer sample to toggle the restriction.
68c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
69e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
70c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
71fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="AppRestrictionEnforcer"><a href="/samples/AppRestrictionEnforcer/index.html">AppRestrictionEnforcer</a></h3>
72c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
73c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
74c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample demonstrates how to set restrictions to other apps as a profile owner.
75c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiUse AppRestrictionSchema sample as a app with available restrictions.
76c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
77c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
78c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
79fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="DocumentCentricRelinquishIdentity"><a href="/samples/DocumentCentricRelinquishIdentity/index.html">DocumentCentricRelinquishIdentity</a></h3>
80c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
81c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
82c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample shows how to relinquish identity to activities above it in the task stack.
83c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
84c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
85c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
86fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="DocumentCentricApps"><a href="/samples/DocumentCentricApps/index.html">DocumentCentricApps</a></h3>
87c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
88c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
89c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample shows the basic usage of the new "Document Centric Apps" API.
90c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiIt let's you create new documents in the system overview menu and persists its
91c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginistate through reboots. If "Task per document" is checked a new task will be
92c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginicreated for every new document in the overview menu.
93c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
94c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
95c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
96fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="HdrViewfinder"><a href="/samples/HdrViewfinder/index.html">HdrViewfinder</a></h3>
97c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
98c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
99c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis demo implements a real-time high-dynamic-range camera viewfinder, by alternating
100c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginithe sensor's exposure time between two exposure values on even and odd frames, and then
101c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginicompositing together the latest two frames whenever a new frame is captured.
102c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
103c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
104c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
105fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="Interpolator"><a href="/samples/Interpolator/index.html">Interpolator</a></h3>
106c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
107c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
108c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample demonstrates the use of animation interpolators and path animations for
109c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiMaterial Design. It shows how an ObjectAnimator is used to animate two properties of a
110c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiview (scale X and Y) along a path.
111c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
112c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
113c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
114fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="DrawableTinting"><a href="/samples/DrawableTinting/index.html">DrawableTinting</a></h3>
115c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
116c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>Sample that shows applying tinting and color filters to Drawables both programmatically
117c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiand as Drawable resources in XML.</p>
118c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>Tinting is set on a nine-patch drawable through the "tint" and "tintMode" parameters.
119c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiA color state list is referenced as the tint color, which defines colors for different
120c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginistates of a View (for example disabled/enabled, focused, pressed or selected).</p>
121c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>Programmatically, tinting is applied to a Drawable through its "setColorFilter" method,
122c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiwith a reference to a color and a PorterDuff blend mode. The color and blend mode can be
123c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginichanged from the UI to see the effect of different options.</p>
124c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
125c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
126fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="LNotifications"><a href="/samples/LNotifications/index.html">LNotifications</a></h3>
127c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
128c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
129c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample demonstrates how new features for notifications introduced in Android 5.0
130c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiare used such as Heads-Up notifications, visibility, people, category and priority
131c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginimetadata. </p>
132c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
133c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
134fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="CardView"><a href="/samples/CardView/index.html">CardView</a></h3>
135c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
136c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
137c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample demonstrates how to use the CardView UI widget introduced in Android 5.0, using the support library for backward compatibility.
138c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
139c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
140c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
141fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="RecyclerView"><a href="/samples/RecyclerView/index.html">RecyclerView</a></h3>
142c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
143c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
144c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiDemonstration of using RecyclerView with a LayoutManager to create a vertical ListView.
145c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
146c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
147c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
148fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="RevealEffectBasic"><a href="/samples/RevealEffectBasic/index.html">RevealEffectBasic</a></h3>
149c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
150c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
151c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiA sample demonstrating how to perform a reveal effect for UI elements within the Material Design framework.
152c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
153c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
154c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
155fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="FloatingActionButtonBasic"><a href="/samples/FloatingActionButtonBasic/index.html">FloatingActionButtonBasic</a></h3>
156c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
157c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
158c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample shows the two sizes of Floating Action Buttons and how to interact with
159c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginithem.
160c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
161c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
162e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
163e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<!--
164c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<h3 id="">SampleName</h3>
165c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
166e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<div class="figure" style="width:220px">
167e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <img src="" srcset="@2x.png 2x" alt="" height="375" />
168e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <p class="img-caption">
169e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez    <strong>Figure n.</strong> Single sentence summarizing the figure.
170e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  </p>
171e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</div>
172e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
173c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
174c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini**description**
175c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
176c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini-->
177e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
178fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="JobSchedulerSample"><a href="/samples/JobScheduler/index.html">JobScheduler</a></h3>
179c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
180c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>
181c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample app allows the user to schedule jobs through the UI, and shows
182c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginivisual cues when the jobs are executed.
183c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</p>
184c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
185c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
186fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="AndroidTVLeanbackSample"><a href="https://github.com/googlesamples/androidtv-leanback">AndroidTVLeanbackSample</a></h3>
187e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<!--
188e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<div class="figure" style="width:220px">
189e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <img src="" srcset="@2x.png 2x" alt="" height="375" />
190e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <p class="img-caption">
191e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez    <strong>Figure n.</strong> Single sentence summarizing the figure.
192e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  </p>
193e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</div>
194e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez-->
195e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
196e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<p>
197c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample demonstrates use of the Android TV Leanback Support Library.
198e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</p>
199e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
200fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="Visual-Game-Controller"><a href="https://github.com/googlesamples/androidtv-VisualGameController">Visual-Game-Controller</a></h3>
201e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<!--
202e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<div class="figure" style="width:220px">
203e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <img src="" srcset="@2x.png 2x" alt="" height="375" />
204e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <p class="img-caption">
205e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez    <strong>Figure n.</strong> Single sentence summarizing the figure.
206e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  </p>
207e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</div>
208e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez-->
209e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
210e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<p>
211e26c4d2f9031c274d1928ea703b86fe87be12825Joe FernandezThis sample displays events received from a game controller shown on the screen.
212e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</p>
213e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
214c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
215fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="GameControllerSample"><a href="https://github.com/googlesamples/androidtv-GameController/">GameControllerSample</a></h3>
216e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<!--
217e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<div class="figure" style="width:220px">
218e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <img src="" srcset="@2x.png 2x" alt="" height="375" />
219e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <p class="img-caption">
220e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez    <strong>Figure n.</strong> Single sentence summarizing the figure.
221e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  </p>
222e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</div>
223e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez-->
224e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
225e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<p>
226c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample implements a multi-player game, demonstrating game controller input
227c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginihandling.
228e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</p>
229e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
230e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
231fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="ClippingBasic"><a href="/samples/ClippingBasic/index.html">ClippingBasic</a></h3>
232e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<!--
233e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<div class="figure" style="width:220px">
234e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <img src="" srcset="@2x.png 2x" alt="" height="375" />
235e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <p class="img-caption">
236e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez    <strong>Figure n.</strong> Single sentence summarizing the figure.
237e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  </p>
238e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</div>
239e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez-->
240e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
241e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<p>
242c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample demonstrates clipping on a {@link android.view.View}.
243e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</p>
244e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
245c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<div class="figure" style="width:220px">
246c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <img src="{@docRoot}samples/images/JobSchedulerSample.png"
247c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini      srcset="{@docRoot}samples/images/JobSchedulerSample@2x.png 2x"
248c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini      alt="" height="375" />
249c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <p class="img-caption">
250fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns    <strong>Figure 1.</strong> The JobSchedulerSample sample app.
251c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  </p>
252c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</div>
253e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez
254c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini
255fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="ElevationDrag"><a href="/samples/ElevationDrag/index.html">ElevationDrag</a></h3>
256c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<!--
257e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez<div class="figure" style="width:220px">
258e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <img src="" srcset="@2x.png 2x" alt="" height="375" />
259e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  <p class="img-caption">
260e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez    <strong>Figure n.</strong> Single sentence summarizing the figure.
261e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez  </p>
262e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez</div>
263e26c4d2f9031c274d1928ea703b86fe87be12825Joe Fernandez-->
264ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
265c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>This sample demonstrates a drag and drop action on different shapes.
266c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiElevation and z-translation are used to render the shadows. The views are
267c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiclipped using different outlines.</p>
268ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
269ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
270fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="ElevationBasic"><a href="/samples/ElevationBasic/index.html">ElevationBasic</a></h3>
271c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<!--
272c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<div class="figure" style="width:220px">
273c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<img src="" srcset="@2x.png 2x" alt="" height="375" />
274c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini    <p class="img-caption">
275c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini    <strong>Figure n.</strong> Single sentence summarizing the figure.
276c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  </p>
277c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</div>
278c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini-->
279ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
280ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns<p>
281c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato ManginiThis sample demonstrates two alternative ways to move a view in the z-axis:</p>
282ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
283c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<ul>
284c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <li>With a fixed elevation, using XML.</li>
285c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <li>Raising the elevation when the user taps on it, using
286c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini      <code>setTranslationZ()</code>.</li>
287c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</ul>
288ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
289ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
290fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="ActivitySceneTransitionBasic"><a href="/samples/ActivitySceneTransitionBasic/index.html">ActivitySceneTransitionBasic</a></h3>
291c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<div class="figure" style="width:220px">
292c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <img src="{@docRoot}samples/images/ActivitySceneTransitionBasic.png"
293c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini      srcset="{@docRoot}samples/images/ActivitySceneTransitionBasic@2x.png 2x"
294c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini      alt="" height="375" />
295c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <p class="img-caption">
296c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini    <strong>Figure 2.</strong> The ActivitySceneTransitionBasic sample app.
297c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  </p>
298c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  </div>
299ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
300c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p> This sample demonstrates how to the use {@link android.app.Activity} scene
301c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginitransitions when transitioning from one activity to another. Uses a combination
302c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginiof <code>moveImage</code> and <code>changeBounds</code> to nicely transition
303c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginifrom a grid of images to an activity with a large image and detail text. </p>
304ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
305ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
306fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="Camera2Video"><a href="/samples/Camera2Video/index.html">Camera2Video</a></h3>
307c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<!--
308c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<div class="figure" style="width:220px">
309c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<img src="" srcset="@2x.png 2x" alt="" height="375" />
310c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini    <p class="img-caption">
311c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini    <strong>Figure n.</strong> Single sentence summarizing the figure.
312c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  </p>
313c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</div>
314c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini-->
315ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
316c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>This sample demonstrates how to record video using the Camera2 API.</p>
317ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
318ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
319fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="Camera2Basic"><a href="/samples/Camera2Basic/index.html">Camera2Basic</a></h3>
320ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
321c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<!--
322c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<div class="figure" style="width:220px">
323c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <img src="" srcset="@2x.png 2x" alt="" height="375" />
324c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <p class="img-caption">
325c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini    <strong>Figure n.</strong> Single sentence summarizing the figure.
326c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  </p>
327c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</div>
328c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini-->
329ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
330c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>This sample demonstrates the basic use of the Camera2 API. The sample code
331c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Manginidemonstrates how you can display camera preview and take pictures.</p>
332ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
333ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
334fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns<h3 id="BasicManagedProfile"><a href="/samples/BasicManagedProfile/index.html">BasicManagedProfile</a></h3>
335c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<div class="figure" style="width:220px">
336c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <img src="{@docRoot}samples/images/BasicManagedProfile.png"
337c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini     srcset="{@docRoot}samples/images/BasicManagedProfile@2x.png 2x"
338c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini     alt="" height="375" />
339c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <p class="img-caption">
340fd9ec8e3bc93667425c74fa449c4ab72dacfcc65Trevor Johns    <strong>Figure 3.</strong> The BasicManagedProfile sample app.
341c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  </p>
342c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</div>
343ac21dbb447158c7c75e154277c5f5f19ed456315Trevor Johns
344c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p>This sample demonstrates how to create a managed profile. You can also:</p>
345c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<ul>
346c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <li>Enable or disable other apps, and set restrictions on them.</li>
347c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <li>Configure intents to be forwarded between the primary account and the
348c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini   managed profile.</li>
349c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  <li>Wipe all the data associated with the managed profile.</li>
350c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini</ul>
35187cb043f5df2a1bd1a0755c013c11d3153740b5bTrevor Johns
352c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini<p class="note"><strong>Note:</strong> There can be only one managed profile on
353c9fc837fb3d866484a8ed3e61f2ba551f76af66bRenato Mangini  a device at a time.</p>
35487cb043f5df2a1bd1a0755c013c11d3153740b5bTrevor Johns
355