Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Auto: Never Enough Android

mscheel
August 03, 2016

Android Auto: Never Enough Android

I gave this talk at Droidcon SF in March 2016, Google Developer Group Las Vegas in June 2016 and at AnDevCon Boston in August 2016, the slides have evolved over time but are mostly the same. This covers Android Auto including motivation for it, retrofitting a car with it, programming for it, as well as some looks at cognitive distraction studies, business implications of in car entertainment and what I have personally found to be good and bad about the Android Auto experience.

mscheel

August 03, 2016
Tweet

More Decks by mscheel

Other Decks in Programming

Transcript

  1. •I have a problem •Getting It •Lets get weird •Lets

    get awesome •Lets get distracted •We all love to code
  2. AMERICANS DRIVE A LOT @5280mark 120 million commuters 50 minutes

    per day per commuter 6 billion every single day Source: SXSW Self Driving Car Talk
  3. @5280mark SPEAKER CITY ANDROID AUTO COST ▸ Only iPhones in

    store ▸ Bewildered by USB-C ▸ Fancier head unit is capacitive, has onboard GPS and no detachable face plate ▸ The Damage: More than $2000 after taxes
  4. @5280mark PART LIST ▸ Metra 95-89035 ▸ Scosche NN04B (Wire

    Harness) ▸ Scosche NAA2B (Antenna Adapter) ▸ PAC-SWI-RC (Steering Wheel Control Interface) ▸ PAC USBCBL (USB Extension with Bracket)
  5. @5280mark FINAL COST ▸ Install - $150 instead of $400

    ▸ Parts - $100 instead of $200 ▸ Head Unit $489 instead of $1400 ▸ Total: $739 (Nexus 6P 128GB is $649)
  6. @5280mark PRO TIPS ▸ Ask for TWO USB Female ports,

    put the Android one in the arm rest or primary position and put the second one in the glovebox or secondary position, it can be used for Apple CarPlay (beware speaker city!) ▸ Ask for HDMI female port, this is a DVD player after all, and the sound is great! ▸ With a second phone you can use Chromecast in your car (when it is not moving), NETFLIX FTW!
  7. @5280mark FILMING ANDROID AUTO ▸ small tension rod (like shower

    curtain rod) ▸ plumbing clamp (like Olivia Pope used in Scandal to escape prison) ▸ selfie stick you can destroy (all of them) ▸ 1/4” bolt @5280mark
  8. @5280mark ANDROID AUTO THE USER EXPERIENCE ▸ Blown surprises, thanks

    Auto Android! (Google Now Cards) ▸ Play [song or artist] applies to last selected Audio App ▸ Blaring context switches ▸ Start the car after waiting, surprise mandatory power cycle
  9. @5280mark ANDROID AUTO THE USER EXPERIENCE ▸ “What’s the price

    of a bitcoin?” ▸ Full power of knowledge graph ▸ Great interface to Google Music, Spotify
  10. @5280mark ANDROID AUTO THE USER EXPERIENCE ▸ Podcasts are awesome—I

    use PocketCast, pro tip: searching defaults to most recently used audio app
  11. @5280mark ANDROID AUTO THE USER EXPERIENCE ▸ Turn by turn

    navigation that mutes FM radio seamlessly ▸ Pinch zoom and panning maps
  12. @5280mark ANDROID AUTO COGNITIVE DISTRACTION IN THE AUTOMOBILE ▸ Six

    clicks rule ▸ The stoplight argument ▸ Auto App Quality ▸ Review Process
  13. @5280mark ANDROID AUTO COGNITIVE DISTRACTION IN THE AUTOMOBILE ▸ “The

    data suggests that a rush to voice-based interactions in the vehicle may have unintended consequences that adversely affect traffic safety.” ▸ “capacity limitations of human attention” ▸ “prior research in aviation technology” ▸ “Even when the participants’ eyes were directed at objects in the driving environment for the same duration they were less likely to remember them if they were talking on a cellular phone”
  14. @5280mark ANDROID AUTO COGNITIVE DISTRACTION IN THE AUTOMOBILE ▸ “general

    finding is that when drivers engage in cognitive secondary task distraction, they tend to look away from the forward roadway less often” (tunnel vision) ▸ “to evaluate cognitive driver distraction, reaction time is typically measured using sudden onset stimuli” ▸ “cognitive distraction can also be measured through a variety of physiological techniques” (electroencephalographic (EEG) activity)
  15. @5280mark ANDROID AUTO COGNITIVE DISTRACTION IN THE AUTOMOBILE ▸ “

    … established that there are significant impairments to driving that stem from the diversion of attention from the task of operating a motor vehicle, and that the impairments to driving are directly related to the cognitive workload of these in-vehicle activities” ▸ Source: https://www.aaafoundation.org/measuring- cognitive-distractions
  16. @5280mark ANDROID AUTO ADDRESSABLE MARKET, BUSINESS, ETC. ▸ “For SiriusXM,

    that means a lot of new competition in the car, the place where consumers listen to radio the most. This process has already begun, with Apple and Google pushing for their own car media platforms” ▸ http://www.nytimes.com/2016/02/21/business/media/siriusxm-fights-to- dominate-the-dashboard-of-the-connected-car.html ▸ “J.D. Power put out a study on quality, and it shows because of consumers' annoyance with infotainment systems, they dinged the car companies. Stephens says it used to be that consumers talked about what broke on a car. But she says, in this survey, consumers said it's not about if the car works but how well it does.” ▸ http://www.npr.org/2016/02/25/468070375/buyers-dissatisfied-with-car- technology-reliability-study-says
  17. @5280mark ANDROID AUTO THE CHEAPEST WAY TO GET ANDROID AUTO

    / TESTING ANDROID AUTO ▸ Click Upper Right “Android Auto” in app multiple times to enable developer mode ▸ https://developer.android.com/training/auto/testing/index.html ▸ Forward socket connections from computer to phone ▸ Start desktop head unit (DHU) $ adb forward tcp:5277 tcp:5277 $ cd <sdk>/extras/google/auto $ ./desktop-head-unit //play a pre-recorded audio command $ mic play ~/Library/Android/sdk/extras/google/auto/voice/showalternateroute.wav //switch to night mode $ night
  18. @5280mark ANDROID AUTO WHAT IS POSSIBLE - APP BRAINSTORMING ▸

    Navigation (coming soon, no <AutomotiveApp> uses tag yet ▸ Media (“media”) ▸ Define a service that provides audio track listing information extending MediaBrowserService ▸ Messaging (“notification”) ▸ Build an UnheardConversation notification associated with a CarExtender object for Android Auto to handle ▸ Replies are managed with intents
  19. @5280mark ANDROID AUTO HOW IT WORKS ▸ Add to existing

    APK, distributed to phone through Play Store, just has Android Auto compatibility ▸ Set targetSdkVersion to 21 or higher ▸ (for messaging) add the v4 support library with NotificationCompat.CarExtender ▸ Specify car capabilities in an xml file in your project’s resources directory ▸ Add a manifest entry that references that capabilities file
  20. @5280mark ANDROID AUTO HOW IT WORKS ▸ Add the features

    to your app adhering to Android Auto design guidelines ▸ Submit to Play Store ▸ Wait for manual approval, rejections sent to developer email ▸ If Auto component does not meet design guidelines, entire APK update will be rejected
  21. @5280mark ANDROID AUTO CODE LAB ▸ Add the features to

    your app adhering to Android Auto design guidelines ▸ Submit to Play Store ▸ Wait for manual approval, rejections sent to developer email ▸ If Auto component does not meet design guidelines, entire APK update will be rejected
  22. @5280mark ANDROID AUTO ANDROID AUTO TALK ▸ Now available in

    100 car models ▸ Moving past companion app that requires head unit to a phone based app that will massively extend reach of this platform—slated for summer 2016 ▸ “Ok, Google” hot wording is coming ▸ Wireless connections are coming (caveat: cars with onboard WiFi) ▸ Google Waze is coming to Android Auto ▸ Android Auto running on Qualcomm hardware will allow car manufacturers to run it native in car
  23. @5280mark ANDROID AUTO SANDBOX ▸ Demo’s of free standing phone

    app for Android Auto ▸ Maserati concept car
  24. @5280mark ANDROID AUTO RESOURCES ▸ developer.android.com/auto ▸ code lab: https://codelabs.developers.google.com/

    codelabs/android-music-player/index.html?index=..%2F.. %2Findex#0 ▸ g+ community “Android Auto Developers” - https:// plus.google.com/communities/116320632775523824083
  25. @5280mark ANDROID AUTO THAT’S A WRAP! ▸ awesome company that

    helps people live healthier lives—we are hiring Android dev’s, remote work possible, or live in Colorado! ▸ I caught a firebass - write up - https://medium.com/@mscheel/ready- player-2-the-firebass-challenge-7056900b7808 ▸ GDG Denver organizer - come speak in Colorado! (meetup.com/gdg- denver) ▸ digitalconstruction.com ▸ github.com/mscheel ▸ @5280mark