From 3c82a488b2719305ad70f1cd5694f5a918576d07 Mon Sep 17 00:00:00 2001 From: sreevanis Date: Fri, 29 Jan 2016 11:58:11 -0800 Subject: [PATCH] docs: Added the new H2 "Determine if your App is Connected" to TOC and fixed some typos. Bug:26510527 Change-Id: I2991473705bd29adf107d3d9b161e56ff2383867 --- docs/html/training/auto/audio/index.jd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/html/training/auto/audio/index.jd b/docs/html/training/auto/audio/index.jd index 75974e44d1c77..9144900a9d995 100644 --- a/docs/html/training/auto/audio/index.jd +++ b/docs/html/training/auto/audio/index.jd @@ -19,6 +19,7 @@ page.image=auto/images/assets/icons/media_app_playback.png
  1. Provide Audio Services
  2. Configure Your Manifest
  3. +
  4. Determine if Your App is Connected
  5. Build a Browser Service
  6. Implement Play Controls
  7. Support Voice Actions
  8. @@ -210,12 +211,12 @@ href="https://www.youtube.com/watch?v=Q96Sw6v4ULg">

    Note: The icon you provide should have transparency enabled, so the icon's background gets filled in with the app's primary color.

    -

    Determine if Your App is Connected

    +

    Determine if Your App is Connected

    It is possible to determine if your app is selected as the current media app.

    -Android Auto broadcasts an intent with com.google.android.gms.car.media. -STATUS action when a user connects or disconnects from a media app. The broadcast intent is +Android Auto broadcasts an intent with com.google.android.gms.car.media.STATUS +action when a user connects or disconnects from a media app. The broadcast intent is scoped to the package name of the media app selected. You can register a broadcast receiver in your app, preferably in your MediaBrowserService implementation and listen for this intent