Limit Android app Android TV

I am using an app specifically for Android TV.
I am using 2 functions 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 has already been published on the Play Store. But I can't see my app when searching through Play Store in Toshiba TV, Android Box, which runs Android OS.
How can I use Youtube TV app? It is only specific to Android TV (Google TV, Toshiba, Android Box).
Thanks in advance.

+3


source to share


5 answers


For Android TV like Nexus Player, the following is recommended in your manifest. This will help filter your app in the Play Store only on Android TV devices.



<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" />

      

+3


source


You can restrict devices in the Google Play Developer Console . Also check the Google FAQ .



The Device Accessibility Dialogue is a powerful tool available to all Android developers. It can be accessed from the Google Play Developer Console . Device Availability provides a dynamic list of compatible devices based on your manifest settings. For example, if the APK manifest file specifies a large screen size, the console will display supported devices that your app can find on Google Play. You can also use the dynamic search feature to see devices for which your app will not be available. You can search by manufacturer, design name (like Passion), or actual public device name (like Nexus One) to check if your device manifest options are filtering.

+1


source


Perhaps if you set the requirement leanback

'(this means the app only works with Leanback / Android TV devices) from true

to false

.

android:name="android.software.leanback"
android:required="false"

      

and Sideload after that.

0


source


If you want it to be limited to TV devices only. There is a list of features that should be implemented on every Android TV or similar device. Unfortunately, not all of them are clearly documented on the Google site, but they are found in some code examples. This should also help limit items on Amazon Fire TV devices.

<feature name="android.hardware.location" />
<feature name="android.hardware.location.network" />
<feature name="android.hardware.screen.landscape" />
<feature name="android.hardware.type.television" />
<feature name="android.software.app_widgets" />
<feature name="android.software.backup" />
<feature name="android.software.leanback" />
<feature name="android.software.leanback_only" />
<feature name="android.software.live_tv" />
<feature name="android.software.print" />
<feature name="android.software.voice_recognizers" />

      

One of the important ones here is android.hardware.type.television. If you want to limit what you need, set the limits to those required by your application.

<uses-feature android:name="android.hardware.type.television"
   android:required="true" />

      

If your application requires all Android Leanback features to be installed on the system, then you want to enable feedback support.

  <uses-feature android:name="android.software.leanback"
   android:required="false" />
  <uses-feature android:name="android.software.leanback_only"
   android:required="false" />

      

You might want to set these to true if you only support Android TV devices, but leave them optional if you're set up for Amazon FireTV devices.

Filters supported by Amazon FireTV: https://developer.amazon.com/docs/app-submission/supported-filters-on-the-amazon-appstore.html

Google Android TV Core TV Hardware Profile: https://android.googlesource.com/device/google/atv/+/578751f94fdc584be22d7b1ea3112723a861b3af/tv_core_hardware.xml

NVIDA Shield: https://developer.nvidia.com/android-tv-deployment-checklist

0


source


We just need to set up the custom functions: bounce as required, true to be limited to only AndroidTV in the store:

<uses-feature
    android:name="android.software.leanback"
    android:required="true" />

      

0


source







All Articles