简体   繁体   English

是否可以仅针对智能手机发布新的Android应用版本,并保持平板电脑的旧版本可用?

[英]Is it possible to release new Android app version for smartphone only and to keep the previous available for tablets?

I have got an app on the Play Store which is compatible for smartphones and tablets. 我在Play商店有一款适用于智能手机和平板电脑的应用。

I need to release a new major version which is only (temporarly) compatible for smartphones. 我需要发布一个新的主要版本,该版本仅(暂时)兼容智能手机。 So I wonder if tablets' users will still be able to download the old version of the app. 因此,我想知道平板电脑的用户是否仍然可以下载该应用程序的旧版本。

Do you know if it is possible and if there is something special to do? 您是否知道是否有可能做特别的事情?

Thanks. 谢谢。

All you need to do is restrict the new version to be compatible only with phones. 您需要做的就是限制新版本仅与手机兼容。 The version that is already on the market will still be distributed to tablets. 市场上已有的版本仍将分发给平板电脑。

You can restrict using the manifest, as described in the official docs: Distributing to Specific Screens . 您可以限制使用清单,如官方文档: 分发到特定屏幕中所述 The link from Amrut Bidri also shows you how to define compatible devices, but I think you can just restrict the new apk to phones and it's enough. Amrut Bidri的链接还向您展示了如何定义兼容的设备,但我认为您可以将新的APK限制在手机上就足够了。 The market also tells you how many devices the apk will go to and you can take a look at that to make sure everything is ok, before publishing. 市场还会告诉您apk将要使用多少台设备,您可以在发布前先查看一下以确保一切正常。

You are interested in something like this 您对这样的东西感兴趣

<manifest ... >
    <compatible-screens>
        <!-- all small size screens -->
        <screen android:screenSize="small" android:screenDensity="ldpi" />
        <screen android:screenSize="small" android:screenDensity="mdpi" />
        <screen android:screenSize="small" android:screenDensity="hdpi" />
        <screen android:screenSize="small" android:screenDensity="xhdpi" />
        <!-- all normal size screens -->
        <screen android:screenSize="normal" android:screenDensity="ldpi" />
        <screen android:screenSize="normal" android:screenDensity="mdpi" />
        <screen android:screenSize="normal" android:screenDensity="hdpi" />
        <screen android:screenSize="normal" android:screenDensity="xhdpi" />
    </compatible-screens>
    ...
    <application ... >
    ...
    <application>
</manifest>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM