我的应用程序只支持Android TV
设备。我已经将它上传到Google Play Developers Console
具有以下AndroidManifest.xml
: 谷歌游戏控制台:Android TV的应用不支持的许多设备上
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<application
android:name=".MediaApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.Leanback">
<activity
android:name=".presentation.main.MainActivity"
android:banner="@drawable/app_icon"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:logo="@drawable/app_icon"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
的问题是,目前它只显示28所支持的设备和装置,我用于测试应用程序,如Nexus Player
和Xiaomi Mi Box 3
是显示为不支持与消息:
此设备型号在应用的APK清单,并 该设备型号的,因此用户不能安装您的应用程序不支持。
其他受欢迎的Android TV
设备也不受支持。似乎好像一切是正确的AndroidManifest.xml
对我和所有活动都使用android:screenOrientation="landscape"
。任何想法为什么这种设备不可用?
尝试删除'RECORD_AUDIO'。 – CommonsWare
@CommonsWare但如果它使用记录音频进行语音搜索呢?在这里查看他们的官方示例https://github.com/googlesamples/leanback-showcase。 –
我不知道你引用的设备提供的硬件功能是否提供'android.hardware.microphone'系统功能。我必须假设只有一部分Android TV设备提供了它。并且,通过请求“RECORD_AUDIO”,您*要求*设备支持“android.hardware.micrphone”。如果你的应用程序可以没有这个功能,那么添加一个''元素(类似于你的'触摸屏')来表示它不是必需的,并且在运行时检查它。也许它会帮助扩大你的范围。 –
CommonsWare