Adding Android Auto support for an already existing MAUI application

KallemSandeep-8232 41 Reputation points
2023-06-28T14:43:58.85+00:00

We are integrating some media player functionalities for Android Auto/Cars support with MAUI mobile application.

I am able to play some sample media with .Net MAUI for the Android platform, But when I am giving support for Android AUTO/Cars, I am unable to see anything on the Android DHU(Android AUTO console). I did all the necessary configurations on the manifest file related to metadata with com.google.android.gms.car.application.

Could anyone help here with any samples for getting started with .Net MAUI with a media player for Android AUTO support?

Thanks in Advance.

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Rok Meglič 0 Reputation points
    2025-10-08T08:50:49.8+00:00
    0 comments No comments

  2. Lindgren 0 Reputation points
    2025-10-19T20:11:39.7366667+00:00

    If your goal is to enable Android Auto or Android Automotive support in a .NET MAUI app that already includes media or diagnostic functions, keep in mind that the Auto platform does not render your regular MAUI UI — it only accepts predefined car templates through the AndroidX Car App Library.

    Here’s a working direction based on what we’ve implemented successfully:

    1. Add the CarAppService
      
         <service
      
             android:name=".CarAppService"
      
             android:exported="true">
      
             <intent-filter>
      
                 <action android:name="androidx.car.app.CarAppService" />
      
             </intent-filter>
      
             <meta-data
      
                 android:name="androidx.car.app"
      
                 android:resource="@xml/automotive_app_desc" />
      
         </service>
      
      

    Create a Session class that defines which template to show (for example, ListTemplate or NavigationTemplate).

    Without this, nothing will appear in the Android DHU (Desktop Head Unit).

    Set the correct permissions & SDK level:

    Target SDK 33+, and include the androidx.car.app:app-automotive dependency.

    Testing tip:

    Use the DHU or the Android Automotive emulator with developer options enabled.

    Ensure the app is installed with the same signing key.

    We’ve also documented a working example of integrating Android Auto with vehicle diagnostic and ECU-related apps here:

    👉 Android Auto Integration Example for Car Diagnostic Tools (Motologik.com)

    That guide includes tested manifest examples, template setup, and common visibility fixes for MAUI + Auto apps.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.