Android 清单仅适用于 Android 电视 - 支持的设备太少?
Android Manifest for Android TV only - too few devices supported?
我已经使用 Unity3D 创建了一个 Android 电视应用程序,并且正在尝试编写一个正确的 android 清单。
我想要的是让我的应用程序出现在尽可能多的 Android 电视设备上,而不是出现在智能手机和平板电脑上。
文档说:
Declare that your app uses the Leanback user interface required by Android TV. If you are developing an app that runs on mobile (phones, wearables, tablets, etc.) as well as Android TV, set the required attribute value to false. If you set the required attribute value to true, your app will run only on devices that use the Leanback UI.
所以我在清单中将 leanback required 设置为 true。
这将启动我的应用程序的设备数量减少到 40 个,并且不包括我自己的测试设备(例如 Sony Bravia KDL 55W805C)。对于 Sony Bravia 设备,它似乎只包括 4K 型号,这比必要的限制要多得多。
我假设所有 Android 电视都使用 Leanback UI 我错了吗?
我需要 add/remove to/from 我的清单才能使该应用程序在尽可能多的 Android 电视设备上可用,而不包括智能手机或平板电脑?
这是完整的清单,以防问题出在其他地方:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0">
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<supports-screens
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="600" />
<application
android:theme="@style/UnityThemeSelector"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:debuggable="true">
<activity
android:name="com.unity3d.player.UnityPlayerActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</activity>
</application>
开发者控制台中的 SONY 电视列表有点误导,但您基本上可以将其视为:"BRAVIA 4K - SVP-DTV15" = [所有 2K/4K 2015 型号]。 "BRAVIA 4K GB - BRAVIA_ATV2" = [所有 2K/4K 2016+ 型号]。在此处查看更多信息:https://developer.sony.com/develop/tvs/android-tv/
我有同样的问题。我从 Manifest 权限中删除了 RECORD_AUDIO 并仅添加了这些:
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<uses-feature android:required="false" android:name="android.hardware.faketouch"/>
<uses-feature android:required="false" android:name="android.hardware.touchscreen"/>
目前支持Android电视40多线
我已经使用 Unity3D 创建了一个 Android 电视应用程序,并且正在尝试编写一个正确的 android 清单。
我想要的是让我的应用程序出现在尽可能多的 Android 电视设备上,而不是出现在智能手机和平板电脑上。
文档说:
Declare that your app uses the Leanback user interface required by Android TV. If you are developing an app that runs on mobile (phones, wearables, tablets, etc.) as well as Android TV, set the required attribute value to false. If you set the required attribute value to true, your app will run only on devices that use the Leanback UI.
所以我在清单中将 leanback required 设置为 true。 这将启动我的应用程序的设备数量减少到 40 个,并且不包括我自己的测试设备(例如 Sony Bravia KDL 55W805C)。对于 Sony Bravia 设备,它似乎只包括 4K 型号,这比必要的限制要多得多。
我假设所有 Android 电视都使用 Leanback UI 我错了吗?
我需要 add/remove to/from 我的清单才能使该应用程序在尽可能多的 Android 电视设备上可用,而不包括智能手机或平板电脑?
这是完整的清单,以防问题出在其他地方:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
android:installLocation="preferExternal"
android:versionCode="1"
android:versionName="1.0">
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<supports-screens
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="true"
android:xlargeScreens="true"
android:requiresSmallestWidthDp="600" />
<application
android:theme="@style/UnityThemeSelector"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:debuggable="true">
<activity
android:name="com.unity3d.player.UnityPlayerActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data android:name="unityplayer.UnityActivity" android:value="true" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</activity>
</application>
开发者控制台中的 SONY 电视列表有点误导,但您基本上可以将其视为:"BRAVIA 4K - SVP-DTV15" = [所有 2K/4K 2015 型号]。 "BRAVIA 4K GB - BRAVIA_ATV2" = [所有 2K/4K 2016+ 型号]。在此处查看更多信息:https://developer.sony.com/develop/tvs/android-tv/
我有同样的问题。我从 Manifest 权限中删除了 RECORD_AUDIO 并仅添加了这些:
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<uses-feature android:required="false" android:name="android.hardware.faketouch"/>
<uses-feature android:required="false" android:name="android.hardware.touchscreen"/>
目前支持Android电视40多线