2016-09-20 60 views
1

當我在我的電視上使用文件資源管理器安裝我的應用程序時,我可以運行它,但是我不知道如何創建一個坐在家中的圖標電視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' –

回答

0

它利用了AndroidManifestandroid:bannerapplication標籤。

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