Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restrict Android application to Android TV

I'm implementing an application just specific to Android TV.
I use 2 features in AndoridManifiest.xml

<uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />
<uses-feature
        android:name="com.google.android.tv"
        android:required="true" />

It already published to Play Store. But I can not see my application when searching it via Play Store in Toshiba TV, Android Box that running Android OS.
How can I do like Youtube for TV application? It's specific only to Android TV (Google TV, Toshiba, Android Box).
Thanks in advance.

like image 609
Huy Duong Tu Avatar asked May 17 '26 10:05

Huy Duong Tu


1 Answers

For Android TV like Nexus Player the following is recommended in your manifest. It'll help filter your app in Play Store to Android TV devices only.

<application
    ...
    <activity
        android:name=".Mainctivity"
        android:icon="@drawable/app_icon_your_company"
        android:label="@string/app_name"
        android:logo="@drawable/app_icon_your_company"
        android:screenOrientation="landscape" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
        </intent-filter>
    </activity>
    ...
</application>

<uses-feature
    android:name="android.hardware.touchscreen"
    android:required="false" />
<uses-feature
    android:name="android.software.leanback"
    android:required="true" />
like image 82
ssgg Google Developer Platform Avatar answered May 19 '26 23:05

ssgg Google Developer Platform



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!