Android Studio - 无法在电视主屏幕上找到应用程序图标

问题描述:

当我在我的电视上使用文件资源管理器安装我的应用程序时,我可以运行它,但是我不知道如何创建一个坐在家中的图标电视Android Studio - 无法在电视主屏幕上找到应用程序图标

下面的屏幕是我AndroidManifest:

<?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> 
+2

我认为你需要'android.intent.category.LEANBACK_LAUNCHER'而不是'android.intent.category.LAUNCHER' –

它利用了AndroidManifestandroid:bannerapplication标签。

<application 
    android:name=".ExampleApp" 
    android:banner="@drawable/app_banner" 
    android:theme="@style/AppTheme"