Android 安卓工作室-Can';在电视主屏幕上找不到应用程序图标
当我在电视上使用文件浏览器安装我的应用程序时,我可以运行它,但我不知道如何在电视主屏幕上创建图标 这是我的AndroidManifest:Android 安卓工作室-Can';在电视主屏幕上找不到应用程序图标,android,android-tv,Android,Android Tv,当我在电视上使用文件浏览器安装我的应用程序时,我可以运行它,但我不知道如何在电视主屏幕上创建图标 这是我的AndroidManifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.sony.omgandroid" > <application
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.sony.omgandroid" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" >
<activity
android:name=".FullscreenActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/app_name"
android:theme="@style/FullscreenTheme" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
它利用
应用程序
标签上的android清单
中的android:banner
<application
android:name=".ExampleApp"
android:banner="@drawable/app_banner"
android:theme="@style/AppTheme"
您需要加载项AndroidManifest.xml
文件
android:banner
android:icon
android:logo
和android.intent.category.LEANBACK_启动器
例如:
<activity
...
android:banner="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher"
android:logo="@mipmap/ic_launcher">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
我认为您需要android.intent.category.LEANBACK_LAUNCHER
而不是android.intent.category.LAUNCHER