问题描述
我们有一个针对Android TV的应用程序,该应用程序已经实时发布,但由于与Google Play商店中的任何设备都不兼容,因此我无法在Android TV设备上找到/安装该应用程序。做错了什么,但除了复制/粘贴响应外,我什么也没得到。
他们唯一说的是它不包含以下内容:
<uses-feature
android:name="android.software.leanback"
android:required="true" />
但是它显然确实在AndroidManifest.xml中的正确位置包含了此代码。我已经将此应用程序与另一个类似的应用程序(出现并运行)进行了比较,清单文件实际上是相同的。
此外,该应用程序在Android TV模拟器中运行良好,最重要的是,在该版本的Play开发人员门户中,该应用程序均表示与许多电视设备(包括我要测试的电视设备)兼容作为一个实时应用)
我真的对此感到困惑,因为一切似乎都是正确的,但是他们通过复制/粘贴电子邮件坚持认为上面的回溯代码不存在。
这是我完整的清单代码:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.myapp">
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<application
android:name=".GetMeRadioApplication"
android:usesCleartextTraffic="true"
android:allowBackup="true"
android:banner="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".ui.SplashActivity"
android:banner="@mipmap/ic_launcher"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:logo="@drawable/ic_launcher"
android:noHistory="true"
android:screenorientation="fullSensor">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.home.HomeActivity"
android:screenorientation="fullSensor"
android:theme="@style/HomeCustomTitle">
</activity>
<activity
android:name=".ui.grid.GridActivity"
android:screenorientation="fullSensor"
android:theme="@style/GenreCustomTitle" />
<activity
android:name=".ui.search.SearchActivity"
android:screenorientation="fullSensor"
android:theme="@style/CustomTitlebrowseSearch" />
<activity
android:name=".ui.player.PlayerActivity"
android:screenorientation="fullSensor" />
</application>
</manifest>
有关如何进行此操作的任何想法或建议?谢谢。
解决方法
该应用在通过手动审核过程后才能在电视设备上显示为可用。
清单的使用功能部分看起来正确,但是看起来您正在使用应用程序图标作为横幅。这不会在ATV启动器中正确显示,这可能就是为什么他们错误地指出了回溯要求。标语应为大小为320 x 180像素的xhdpi资源。图片中必须包含文本形式的应用名称。如果您的应用程序支持多种语言,则必须为横幅广告提供单独的版本,并为每种受支持的语言提供文字。
有关更多信息,请参见https://developer.android.com/training/tv/start/start#banner。
对于电视上的screenOrientation,通常应将其保留为未定义状态或指定横向。我不确定将其设置为全传感器会产生什么影响(如果有的话),因为系统没有可依靠的加速度计。