8

I'm trying to develop a media application for Android Auto. To help me, I've downloaded the AndroidMediaBrowserService Sample (https://github.com/googlesamples/android-MediaBrowserService). I've succeded in installing the application, but when I launch Android Auto on my phone and I click the Media icon in the bottom right corner, the application is not listed with the other ones and I can't find out why. Can someone help me please ?

Captain Obvlious
  • 19,754
  • 5
  • 44
  • 74
  • 2
    This could be because of android auto not being in developer mode. To activate dev mode in android auto start it on the phone without it being connected to anything and then go to the old start screen of the app ( it should be information ) then tap on the text "About android auto" at the top repeadetly until you get the message you are now in developer mode. Then you will have dev options available if you click on the three dots at the top right. In there is a tick for not signed apps (or something like that) , maybe this has to be checked to gain access to your custom app for android auto. – Nico Dec 22 '16 at 14:00
  • 1
    The developer mode is activated in Android Auto application and on the phone to install the apk from Android Studio – Guillaume BEGUIN Dec 22 '16 at 18:05

4 Answers4

3

If you are trying to test the application in Physical Android Auto device (Real Head Unit), note that the car application will not show up unless you install the app from Google Playstore as mentioned here.

So for development purposes use the Desktop Head Unit (DHU) Emulator.

Ankur
  • 1,268
  • 18
  • 22
2

enable developer mode in android auto emulator as well, so that it can identify your debug version of phone apk. https://www.howtogeek.com/271132/how-to-enable-developer-settings-on-android-auto/

put application mode as developer.

Harsh
  • 21
  • 6
1

I don't see that in manifest file:

<meta-data android:name="com.google.android.gms.car.application"
        android:resource="@xml/automotive_app_desc"/>

<meta-data android:name="com.google.android.gms.car.notification.SmallIcon"
        android:resource="@drawable/ic_notification" />
Mateusz Kaflowski
  • 2,221
  • 1
  • 29
  • 35
0

Clearing app data for Android Auto worked for me. Developer mode and unknown sources need to be on in Android Auto of course.

Mateusz Kaflowski
  • 2,221
  • 1
  • 29
  • 35