|
37 | 37 | <uses-permission android:name="androidx.car.app.ACCESS_SURFACE"/> |
38 | 38 | <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> |
39 | 39 |
|
40 | | - <!-- Various required feature settings for an automotive app. --> |
41 | | - <uses-feature |
42 | | - android:name="android.hardware.type.automotive" |
43 | | - android:required="true" /> |
44 | | - <uses-feature |
45 | | - android:name="android.software.car.templates_host" |
46 | | - android:required="true" /> |
47 | | - <uses-feature |
48 | | - android:name="android.hardware.wifi" |
49 | | - android:required="false" /> |
50 | | - <uses-feature |
51 | | - android:name="android.hardware.screen.portrait" |
52 | | - android:required="false" /> |
53 | | - <uses-feature |
54 | | - android:name="android.hardware.screen.landscape" |
55 | | - android:required="false" /> |
| 40 | + <!-- For Microphone Recording --> |
| 41 | + <uses-permission android:name="android.permission.RECORD_AUDIO"/> |
| 42 | + <uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> |
56 | 43 |
|
57 | 44 | <application |
58 | 45 | android:icon="@drawable/ic_launcher" |
59 | 46 | android:label="@string/app_name"> |
60 | 47 |
|
61 | | - <meta-data |
62 | | - android:name="com.android.automotive" |
63 | | - android:resource="@xml/automotive_app_desc" |
64 | | - tools:ignore="MetadataTagInsideApplicationTag" /> |
| 48 | + <meta-data |
| 49 | + android:name="com.google.android.gms.car.application" |
| 50 | + android:resource="@xml/automotive_app_desc" |
| 51 | + tools:ignore="MetadataTagInsideApplicationTag" /> |
65 | 52 |
|
66 | 53 | <meta-data android:name="androidx.car.app.minCarApiLevel" |
67 | 54 | android:value="1" |
|
77 | 64 | <category android:name="androidx.car.app.category.NAVIGATION"/> |
78 | 65 | <category android:name="androidx.car.app.category.FEATURE_CLUSTER"/> |
79 | 66 | </intent-filter> |
| 67 | + <intent-filter> |
| 68 | + <action android:name="androidx.car.app.action.NAVIGATE" /> |
| 69 | + <category android:name="android.intent.category.DEFAULT"/> |
| 70 | + <data android:scheme="geo" /> |
| 71 | + </intent-filter> |
80 | 72 | </service> |
81 | 73 | <service |
82 | 74 | android:name="androidx.car.app.sample.navigation.common.nav.NavigationService" |
83 | 75 | android:enabled="true" |
84 | 76 | android:exported="true"> |
85 | 77 | </service> |
86 | | - |
87 | | - <activity |
88 | | - android:theme="@android:style/Theme.DeviceDefault.NoActionBar" |
89 | | - android:name="androidx.car.app.activity.CarAppActivity" |
90 | | - android:exported="true" |
91 | | - android:launchMode="singleTask" |
92 | | - android:label="Navigation"> |
93 | | - |
94 | | - <intent-filter> |
95 | | - <action android:name="android.intent.action.MAIN" /> |
96 | | - <category android:name="android.intent.category.LAUNCHER" /> |
97 | | - </intent-filter> |
98 | | - <intent-filter> |
99 | | - <action android:name="androidx.car.app.action.NAVIGATE" /> |
100 | | - <category android:name="android.intent.category.DEFAULT"/> |
101 | | - <data android:scheme="geo" /> |
102 | | - </intent-filter> |
103 | | - <meta-data android:name="distractionOptimized" android:value="true"/> |
104 | | - </activity> |
105 | | - |
106 | 78 | </application> |
107 | 79 | </manifest> |
0 commit comments