问题描述
我想将我的应用程序用于Android TV和模拟器(例如BlueStacks).我的应用程序有Leanback Launcher请求,并且已经发布了Android TV.
I want to use my app for Android TV and emulator (like BlueStacks). My app has Leanback Launcher request and already published for Android TV.
当我生成签名的apk时,我可以将其上传到bluestack模拟器中,并且运行良好. BlueStack模拟器在Google Play上显示为Samsung Galaxy S8
When I generate signed apk, i can upload it bluestack emulator and it is running good. BlueStack emulator is shown as Samsung Galaxy S8 on Google Play
在Google Play控制台中,我发布的应用仅支持电视设备.
In Google Play Console, my published app only support TV devices.
是否可以在Google Play上为Android TV和智能手机发布相同的应用程序?
Is possible to publish same app for Android TV and smartphones on Google Play?
它是我的清单文件
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<application
android:name=".Application.MyApp"
android:allowBackup="true"
android:banner="@drawable/tv_banner"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/MyAppTheme">
<activity
android:name=".LoginActivity"
android:excludeFromRecents="true"
android:screenOrientation="landscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
推荐答案
您仅需要电视功能-
<uses-feature
android:name="android.software.leanback"
android:required="true" />
如果删除它,则可以同时发布.
If you remove it, you can publish for both.
这篇关于可以在Google Play上为Android TV和智能手机发布相同的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!