Browse Source

Enable Android Auto

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 1 year ago
parent
commit
4d4805a610
2 changed files with 8 additions and 0 deletions
  1. 5 0
      app/src/main/AndroidManifest.xml
  2. 3 0
      app/src/main/res/xml/automotive_app_desc.xml

+ 5 - 0
app/src/main/AndroidManifest.xml

@@ -108,6 +108,11 @@
         tools:ignore="UnusedAttribute"
         tools:replace="label, icon, theme, name, allowBackup">
 
+        <meta-data
+        android:name="com.google.android.gms.car.application"
+        android:resource="@xml/automotive_app_desc"/>
+
+
         <meta-data
             android:name="android.max_aspect"
             android:value="10" />

+ 3 - 0
app/src/main/res/xml/automotive_app_desc.xml

@@ -0,0 +1,3 @@
+<automotiveApp>
+    <uses name="notification" />
+</automotiveApp>