Reputation: 101
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 ?
Upvotes: 8
Views: 7628
Reputation: 1200
After some unsuccessful attempts I eventually launched the application on a physical AA device. The process is the same as with emulator(old variant). You need to enable developer mode in AA on the phone by clicking on AA version several times. Then at the top-right corner click 3 dots and select "Run head unit server" or something like this and connect to the AA wirelessly or with a cable depends on your needs. That's it. All debug applications will be visible
Upvotes: 0
Reputation: 1308
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.
Upvotes: 4
Reputation: 2367
Clearing app data for Android Auto worked for me. Developer mode and unknown sources need to be on in Android Auto of course.
Upvotes: 0
Reputation: 2367
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" />
Upvotes: 1
Reputation: 21
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.
Upvotes: 2