blob: ee0629ab4e51aaaac6cd601c2001147b56ad7a99 [file] [log] [blame]
Robert Ly20555292014-06-13 23:28:19 -07001fullpage=true
2page.viewport_width=970
3no_footer_links=true
4excludeFromSuggestions=true
5page.metaDescription=Android Auto
6
7@jd:body
8
9<div style="width:780px; margin:0 auto;">
10
11<div id="qv-wrapper">
12<div id="qv">
13<h2>In this document</h2>
14<ol>
15 <li><a href="#design">Design</a>
16 <ol>
17 <li><a href="#designprinciples">Design Principles</a></li>
18 <li><a href="#uioverview">UI Overview</a></li>
19 </ol>
20 </li>
21 <li><a href="#architecture">Architecture</a></li>
22 <li><a href="#uitemplates">UI Templates</a>
23 <ol>
24 <li><a href="#launchapp">Launch App</a></li>
25 <li><a href="#useractions">User Actions</a></li>
26 <li><a href="#drawertransitions">Drawer Transitions</a></li>
27 <li><a href="#daynighttransitions">Day and Night Transitions</a></li>
28 <li><a href="#customizetemplates">Customizing Templates</a></li>
29 </ol>
30 </li>
31 <li><a href="#devprocess">Development Process</a></li>
32 <li><a href="#emulator">Testing Your App</a></li>
33 <li><a href="#running">Running Your App</a></li>
34</ol>
35</div>
36</div>
37
38<h1>Android Auto Developer Overview</h1>
39
40<p>Android Auto extends the Android platform to car entertainment systems. When users connect
41their Android handheld device to a compatible vehicle, Android Auto lets users project apps on
42the vehicle’s touchscreen and interact with them using the vehicle’s controls.</p>
43
44<dl>
45<dt style="margin-bottom:10px"><strong>UI Templates</strong></dt>
46<dd style="margin-bottom:20px">
47Android Auto defines interaction models and UI templates for several app categories. The
48first version of Android Auto supports media apps, such as music, podcast, live radio, and
49audio news apps. Future versions will support messaging, communication, local search apps,
50and more.
51</dd>
52<dt style="margin-bottom:10px"><strong>Notifications</strong></dt>
53<dd style="margin-bottom:20px">
54The platform will integrate with existing Android APIs for notifications. Users will get
55some notifications from Android apps on the vehicle’s screen.</dd>
56
57<dt style="margin-bottom:10px"><strong>Voice Actions</strong></dt>
58<dd style="margin-bottom:20px">
59Android Auto supports voice search and voice actions for media apps. Future versions
60will support additional voice actions.</dd>
61
62<dt style="margin-bottom:10px"><strong>Easy Development Workflow</strong></dt>
63<dd style="margin-bottom:20px">
64To extend an existing Android app for Android Auto, you implement a set of interfaces and
65services defined in the platform. You can reuse existing functionality and many Android APIs
66you already know.</dd>
67</dl>
68
69<p>We’ll release the Android Auto SDK in the coming months, which will let you test your
70Android Auto experience on a regular Android device.</p>
71
72
73<h2 id="design" style="margin-top:30px">Design</h2>
74
75<p>Digital experiences for cars should complement and augment driving, not demand the driver's
76attention. Designing these experiences for cars is fundamentally different than in the case of
77phones and tablets. It requires rethinking how these experiences unfold.</p>
78
79<h3 id="designprinciples" style="margin-top:25px">Design Principles</h3>
80
81<p><strong>Glanceable</strong>. We designed Android Auto to reduce UI complexity, optimize user
82interactions, and lower cognitive load. Effective apps show just enough information
83and only provide features that do not require excessive menu interaction and navigation.</p>
84
85<p><strong>Predictive, yet predictable</strong>. Android Auto leverages rich, contextual awareness
86to keep the driver informed about important situations. Timely help is combined with predictable
87functions. Effective apps use patterns for common tasks and show timely information only when
88relevant.</p>
89
90<p><strong>Connected</strong>. Android Auto works with apps that drivers already use in other
91devices. Android Auto promotes a continuous app experience from phones and tablets to cars,
92providing access to user's existing settings, subscriptions, and digital libraries. Experiences
93that bring personal content and context from other devices are part of Android Auto.</p>
94
95<p><strong>Integrated</strong>. Android Auto blends your apps with the vehicle's entertainment
96system, creating a truly integrated experience in every car. By using the vehicle's screen and
97controls, apps feel tailored to each car.</p>
98
99<h3 id="uioverview" style="margin-top:25px">UI Overview</h3>
100
101<p>Android Auto is a new environment that leverages existing UI models where appropiate and adds
102new models based on constrains and context. There are three primary concepts for Android Auto:
103<strong>Suggest</strong>, a unified place for predictive content; <strong>Demand</strong>, a
104pervasive way to interact with voice; and the <strong>Facets</strong>, organized spaces for
105primary activities, apps and content.</p>
106
107<dl>
108<dt style="margin-bottom:10px"><strong>Suggest: The Google Facet</strong></dt>
109<dd style="margin-bottom:20px">
110Core of continuity and extensibility is contextual stream of Now-like cards, powered by your
111apps and notifications. Relevant, timely, and dynamic, the stream organizes likely people, media,
112places, and information so drivers can quickly continue their activities or start something new.
113Google Now and notifications enable drivers to use the apps and services they know when they are
114most relevant.
115</dd>
116<dt style="margin-bottom:10px"><strong>Demand: The Voice Layer</strong></dt>
117<dd style="margin-bottom:20px">
118Voice-enabled tasks lets drivers accomplish their goals without taking their eyes off the road.
119Android Auto defines actions and intents that your app can register for.
120These are accessible through both persistent UI elements and dedicated hardware controls.
121</dd>
122<dt style="margin-bottom:10px"><strong>Facets and Templates: App-powered activities</strong></dt>
123<dd style="margin-bottom:20px">
124In the car, pages of app icons and different UIs create a distracting and dangerous situation.
125Instead, Android Auto apps power templates which help provide simple but customizable UIs
126for common interactions such as media or communications. Templates incorporate common behaviors,
127such as play/pause or reply to a message, while still letting your app promote its value
128and its brand. Apps are organized into facets (or activities) to enable quick access.
129</dd>
130</dl>
131
132<p>Android Auto uses the input and output mechanisms in each vehicle to tailor the interactions.
133Some vehicles have dedicated hardware controls, while others have primarily touch-based systems.
134Android Auto maps common actions and intents across these diverse sets of controls and outputs to
135enable you to concentrate on your unique app experience.</p>
136
137
138<h2 id="architecture" style="margin-top:30px">Architecture</h2>
139
140<p>The Android Auto app projects your app's customized UI on the vehicle's screen. To communicate
141with the Android Auto app, your media app implements a set of media interfaces.</p>
142
143<div style="width:750px;margin:0 auto">
144<img src="/auto/images/figure01.png" alt="" id="figure1" />
145<p class="img-caption">
146  <strong>Figure 1</strong> - Architecture of Android Auto.
147</p>
148</div>
149
150<p>The architecture consists of the following components:</p>
151
152<p><strong>Media App</strong> - Runs a media service that exposes content through browsing and
153playback APIs. The service provides content to the Android Auto app. This is your Android app.</p>
154
155<p><strong>Android Auto App</strong> - Creates a templated UI and handles user interactions.
156This app uses a media client to request content from the media service running in the media
157app. The client requests data from the media service and monitors service states.</p>
158
159<p><strong>Vehicle Display</strong> - Shows app content and supports user interaction via
160on-screen soft buttons and other components, such as physical buttons or steering
161wheel controls.</p>
162
163<p>Android media apps must implement binders to these APIs:</p>
164
165<ul>
166<li><strong>Browsing</strong> - Enables a media client to browse a hierarchy of a user’s
167media collection, presented as a virtual file system with containers (similar to directories)
168and items (similar to files).</li>
169<li><strong>Playback</strong> - Enables a media client to control media playback and monitor
170playback state through callbacks.</li>
171</ul>
172
173
174<h2 id="uitemplates" style="margin-top:30px">UI Templates</h2>
175
176<p>The Android Auto app uses a templated UI to display content and user interaction
177opportunities. Android Auto provides you with a set of standard UI templates that follow
178international guidelines for minimizing driving distraction. You do not have to test your
179app's UI for for driver distraction, which is a lengthy and expensive process involving
180multiple legislations across the globe and different standards for each vehicle OEM.</p>
181
182<p>The UI templates define interfaces for browsing, searching, and listening to content from
183media apps. Although you cannot change the standard template format or layout, you can customize
184the template colors, action icons, background images, and more.</p>
185
186<h3 id="launchapp" style="margin-top:25px">Launch App Template</h3>
187
188<p>The Launcher template shows all the compatible media apps installed on the user’s
189Android device and lets users select one of them from an scrollable list:</p>
190
191<div style="width:500px;margin:0 auto">
192<img src="/auto/images/figure02.png" alt="" id="figure2" />
193<p class="img-caption">
194  <strong>Figure 2.</strong> The Launcher template.
195</p>
196</div>
197
198<h3 style="margin-top:25px">Primary App Template</h3>
199
200<p>After the user selects a media app, the display shows the primary app template. Figure
2013 shows the elements of this template that you can customize:</p>
202
203<div style="width:428px;margin:0 auto">
204<img src="/auto/images/figure03.png" alt="" id="figure3" />
205<p class="img-caption">
206  <strong>Figure 3.</strong> The main application template.
207</p>
208</div>
209
210<p>You can customize the primary app template to show your own icons, app name, and
211background images. Figure 4 shows an example of a customized template:</p>
212
213<div style="width:787px;margin:0 auto">
214<img src="/auto/images/figure04.png" alt="" id="figure4" />
215<p class="img-caption">
216  <strong>Figure 4.</strong> A customized template.
217</p>
218</div>
219
220<h3 id="useractions" style="margin-top:25px">User Actions</h3>
221
222<p>The primary app template supports four main actions on the action bar, four auxiliary actions
223on the overflow bar, and the <em>Return</em> action. You can use standard controls and customize
224the actions and icons, as shown in Figure 5.</p>
225
226<div style="width:500px;margin:0 auto">
227<img src="/auto/images/figure05.png" alt="" id="figure5" />
228<p class="img-caption">
229  <strong>Figure 5.</strong> Custom icons for auxiliary actions.
230</p>
231</div>
232
233<h3 id="drawertransitions" style="margin-top:25px">Drawer Transitions</h3>
234
235<p>For browse actions, the display shows the drawer transition and template:</p>
236
237<div style="width:750px;margin:0 auto">
238<img src="/auto/images/figure06.png" alt="" id="figure6" />
239<p class="img-caption">
240  <strong>Figure 6.</strong> The drawer transition.
241</p>
242</div>
243
244<p>After the transition from the primary app template to the drawer template, the drawer
245appears on the center. The customized drawer template shows the media containers and
246media files provided by the media service in your app. You can also customize drawers
247with icons for list items.</p>
248
249<div style="width:500px;margin:0 auto">
250<img src="/auto/images/figure07.png" alt="" id="figure7" />
251<p class="img-caption">
252  <strong>Figure 7.</strong> A customized drawer template.
253</p>
254</div>
255
256<h3 id="daynighttransitions" style="margin-top:25px">Day and Night Transitions</h3>
257
258<p>All the templates support different color schemes for day and night, as shown in
259Figure 8. The platform provides the state (day or night) and makes adjustments automatically.</p>
260
261<div style="width:780px;margin:0 auto">
262<img src="/auto/images/figure08.png" alt="" id="figure8" />
263<p class="img-caption">
264  <strong>Figure 8.</strong> Day and night transitions.
265</p>
266</div>
267
268<h3 id="customizetemplates" style="margin-top:25px">Customizing Templates</h3>
269
270<p>To customize the templates, provide the following app-specific resources and actions
271to the Android Auto media client.</p>
272
273<ul>
274<li><strong>Resources</strong> - App logo, app name, theme colors, and background images.</li>
275<li><strong>Actions</strong> - Multiple custom actions; for example: <em>Thumbs Up/Down</em>,
276<em>Favorite</em>, and <em>Bookmark</em>. These actions are app-specific.</li>
277</ul>
278
279<p>If provided, the media client automatically uses them in the templated UI.</p>
280
281
282<h2 id="devprocess" style="margin-top:30px">Development Process</h2>
283
284<p class="note"><strong>Note:</strong> When released, the Android Auto SDK will provide
285media service interfaces, an APK for handheld devices that simulates the Android Auto
286app, and other tools for Android Auto development.</p>
287
288<p>To create a media app for Android Auto, you include an Android service in your app
289that implements the media service interfaces provided by the Android Auto SDK. These
290interfaces define functionality for browsing and finding content, playing media,
291customizing the UI template, and performing app-specific actions.</p>
292
293<p>The media service interfaces present the content library as a navigable tree and enable
294clients to play media, get album art, obtain theme resources for the UI template, and
295invoke app-specific actions.</p>
296
297<p>You don’t have to create a new app for Android Auto: you can extend your existing
298Android app with implementations of the media service interfaces. Your service exposes
299your app’s media content, theme resources, and app-specific actions using the methods and
300data types specified by the media service interfaces. This simplifies the development
301cycle because:</p>
302
303<ul>
304<li>You do not have to maintain a separate project for Android Auto</li>
305<li>You can reuse existing functionality from your Android app</li>
306</ul>
307
308<p>The Android Auto client presents the customized UI to users and invokes the
309functionality from your service as needed. This has two additional advantages:</p>
310
311<ul>
312<li>Your app does not implement a UI for Android Auto</li>
313<li>Your app does not manage user interactions directly</li>
314</ul>
315
316<p>This also means that you do not have to worry about vehicle-specific hardware
317differences such as screen resolutions, software interfaces, knobs and touch
318controls.</p>
319
320
321<h2 id="emulator" style="margin-top:30px">Testing Your App on an Android Device</h2>
322
323<p>The Android Auto SDK includes an APK with a media client implementation, which is
324similar to those available in compatible vehicles. To test your app with this
325client:</p>
326
327<ol>
328<li>Get an Android device with a similar form factor to a dashboard screen (like a
329Nexus 7).</li>
330<li>Configure the device for Android development.</li>
331<li>Install the APK for the media client from the Android Auto SDK on the device.</li>
332<li>Install the APK for your app on the device.</li>
333<li>Open the media client app from the Android Auto SDK on the device.</li>
334<li>Select your app from the list of available services.</li>
335</ol>
336
337<p>The customized UI for your app appears on the client. You can navigate the content
338library and play media. If your app provides app-specific actions, these actions appear
339in the UI controls.</p>
340
341
342<h2 id="running" style="margin-top:30px">Running Your App on Android Auto</h2>
343
344<p>Media apps are available on the Google Play Store for compatible Android devices.
345When users connect their Android device to a compatible vehicle, the
346Android Auto media client shows a list of all the Android apps installed on the phone
347that implement the media service interfaces.</p>
348
349<p>When users select one of these apps, the Android Auto media client uses the app’s
350service to respond to user input and invoke the methods in the media service interfaces
351to build the UI, navigate the content library, and play media.</p>
352
353<div style="margin-bottom:40px"> </div>
354</div>