-
-
Notifications
You must be signed in to change notification settings - Fork 103
Android Auto Setup
Oguzhan Atalay edited this page Jan 24, 2026
·
1 revision
π§ Android Auto support is newer and not all features are available yet. See the feature comparison below.
- Android SDK 23+ (minSdkVersion)
- Android Auto app installed on device/emulator
Add the Android Auto metadata to android/app/src/main/AndroidManifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="your_app"
...>
<!-- Android Auto metadata -->
<meta-data
android:name="com.google.android.gms.car.application"
android:resource="@xml/automotive_app_desc" />
<!-- Your other activities and services -->
</application>
</manifest>Create android/app/src/main/res/xml/automotive_app_desc.xml:
<?xml version="1.0" encoding="utf-8"?>
<automotiveApp>
<uses name="template" />
</automotiveApp>Android Auto uses a separate controller from CarPlay:
import 'package:flutter_carplay/flutter_carplay.dart';
import 'dart:io';
class CarPlayManager {
FlutterCarplay? _carplay;
FlutterAndroidAuto? _androidAuto;
void init() {
if (Platform.isIOS) {
_carplay = FlutterCarplay();
_setupCarPlay();
} else if (Platform.isAndroid) {
_androidAuto = FlutterAndroidAuto();
_setupAndroidAuto();
}
}
void _setupCarPlay() {
FlutterCarplay.setRootTemplate(
rootTemplate: _buildRootTemplate(),
animated: true,
);
}
void _setupAndroidAuto() {
_androidAuto?.setRootTemplate(
rootTemplate: _buildRootTemplate(),
);
}
CPListTemplate _buildRootTemplate() {
return CPListTemplate(
sections: [
CPListSection(
header: 'My App',
items: [
CPListItem(
text: 'Item 1',
detailText: 'Description',
onPress: (complete, item) {
complete();
},
),
],
),
],
title: 'Home',
systemIcon: 'house.fill', // iOS only, ignored on Android
);
}
}| Feature | CarPlay (iOS) | Android Auto |
|---|---|---|
| List Template | β | β |
| Tab Bar Template | β | π§ Partial |
| Grid Template | β | π§ Partial |
| Alert Template | β | β |
| Action Sheet Template | β | β |
| Information Template | β | β |
| POI Template | β | β |
| Now Playing | β | β (use audio_service) |
| Map Template | π§ Planned | π§ Planned |
| Search Template | π§ Planned | π§ Planned |
- Install Android Auto on your device/emulator
- Download the Desktop Head Unit from Android Studio
- Enable developer mode in Android Auto app
- Run:
./desktop-head-unit
Connect your phone to a car with Android Auto support. Your app should appear in the launcher.
For audio apps, Android Auto's Now Playing is handled through the audio_service package, not flutter_carplay. This is because Android Auto has its own media framework.
See the audio_service package for media app integration.
See Troubleshooting for common Android Auto issues.