Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - Can't find app icon on TV homescreen

When I install my app using a file explorer on my tv, I can run it and everything but I do not know how to create an icon that will sit on the home screen of the tv

Here is my 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>
like image 722
Anindya Basu Avatar asked Oct 27 '25 14:10

Anindya Basu


1 Answers

You need add in AndroidManifest.xml file

android:banner android:icon android:logo and android.intent.category.LEANBACK_LAUNCHER

example:

<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>
like image 147
Wilmer Avatar answered Oct 30 '25 03:10

Wilmer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!