【问题标题】:Is possible to publish same app for Android TV and smartphones on Google Play可以在 Google Play 上为 Android TV 和智能手机发布相同的应用程序
【发布时间】:2018-12-12 20:07:19
【问题描述】:

我想将我的应用用于 Android TV 和模拟器(如 BlueStacks)。我的应用有 Leanback Launcher 请求,并且已经针对 Android TV 发布。

当我生成签名的 apk 时,我可以上传它 bluestack 模拟器,它运行良好。 BlueStack 模拟器在 Google Play 上显示为三星 Galaxy S8

在 Google Play Console 中,我发布的应用仅支持电视设备。

是否可以在 Google Play 上为 Android TV 和智能手机发布相同的应用?

这是我的清单文件

<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>

【问题讨论】:

    标签: android google-play android-tv


    【解决方案1】:

    您需要仅电视功能 -

    <uses-feature
        android:name="android.software.leanback"
        android:required="true" />
    

    如果你删除它,你可以同时发布。

    【讨论】:

    • 感谢回复,我把 android:required="true" 改成 "false" 就可以了
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-05
    • 1970-01-01
    • 1970-01-01
    • 2021-11-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多