浏览代码

Enable Android Auto

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 1 年之前
父节点
当前提交
4d4805a610
共有 2 个文件被更改,包括 8 次插入0 次删除
  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>