android-studio - Google 在 Android TV 应用上声称设备不兼容
问题描述
我们有一个针对 Android TV 的应用程序,它已实时发布,但它与 Google Play 商店中的任何设备都不兼容,我无法在 Android TV 设备上找到/安装它,我认为 Google 做错了什么但除了复制/粘贴回复外,我什么也没从他们那里得到。
他们唯一说的是它不包含以下内容:
<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,您通常应该将其保留为未定义或指定横向。我不确定将其设置为全传感器会产生什么影响(如果有的话),因为系统没有可以依赖的加速度计。
推荐阅读
- excel - 提高将非常慢的文件附加到主文件的速度
- javascript - 如何在 React-native 的抽屉导航中刷新从第二个屏幕调用的前一个抽屉屏幕?
- python - 防止 PyTorch 数据集迭代超过数据集长度
- php - Jquery - 带有 ajax 的产品比较复选框
- css - 更改大纲输入字段中的背景颜色
- android - Android 透明 Activity 没有覆盖整个屏幕
- javascript - 编辑 fullRow 时,Ag-grid 编辑似乎不尊重 rowHeight
- vba - 具有各种标准的 VBA 循环
- getstream-io - 使用 getstream.io 避免不同提要中的重复
- python - 我的代码测试没有通过我的冒泡排序算法