1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2024 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License. 16 --> 17<!-- Declare the contents of this Android application. The namespace 18 attribute brings in the Android platform namespace, and the package 19 supplies a unique name for the application. When writing your 20 own application, the package name must be changed from "com.example.*" 21 to come from a domain that you own or have control over. --> 22 23<manifest xmlns:android="http://schemas.android.com/apk/res/android" 24 package="com.example.android.launchonprivatedisplay"> 25 26 <uses-permission android:name="android.car.permission.ACCESS_PRIVATE_DISPLAY_ID" /> 27 28 <application android:label="Launch on Private Display"> 29 <activity android:name="MainActivity" 30 android:label="Launch on Private Display Main Activity 1" 31 android:launchMode="singleInstance" 32 android:theme="@android:style/Theme.NoTitleBar" 33 android:exported="true"> 34 <intent-filter> 35 <action android:name="android.intent.action.MAIN"/> 36 <category android:name="android.intent.category.LAUNCHER"/> 37 </intent-filter> 38 </activity> 39 40 <activity android:name="ActivityForPrivateDisplay" 41 android:label="Launch on Private Display Main Activity 2" 42 android:launchMode="singleInstance" 43 android:exported="true"> 44 </activity> 45 46 <meta-data 47 android:name="com.android.automotive" 48 android:resource="@xml/automotive_app_desc"/> 49 </application> 50</manifest> 51