gpt4 book ai didi

unity3d - 仅适用于 Android TV 的 Android Manifest - 支持的设备太少?

转载 作者:行者123 更新时间:2023-12-04 17:57:04 26 4
gpt4 key购买 nike

我已经使用 Unity3D 创建了一个 Android TV 应用程序,并且正在尝试编写一个合适的 android list 。

我想要的是让我的应用尽可能多地出现在 Android TV 设备上,而不是出现在智能手机和平板电脑上。

文档说:

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.



所以我在我的 list 中将 Leanback required 设置为 true。
这将我的应用程序将在其上启动的设备数量减少到 40,并且不包括我自己的测试设备(例如 Sony Bravia KDL 55W805C)。对于 Sony Bravia 设备,它似乎只包括 4K 型号,这比必要的限制要多得多。

假设所有 Android TV 都使用 Leanback UI,我错了吗?
我必须在 list 中添加/删除什么,才能使应用在尽可能多的 Android TV 设备上可用,而不包括智能手机或平板电脑?


这是整个 list ,以防问题出在其他地方:
<?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/

关于unity3d - 仅适用于 Android TV 的 Android Manifest - 支持的设备太少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39589690/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com