【发布时间】:2014-05-08 00:36:33
【问题描述】:
我想让我的应用程序仅用于智能手机而不是平板电脑。
在清单中我已经把这行放在屏幕兼容性上
<compatible-screens>
<!-- all small size screens -->
<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="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
<screen android:screenSize="normal" android:screenDensity="480" />
<!-- all large size screens -->
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
<!-- all large size screens -->
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
</compatible-screens>
在正常尺寸的屏幕中,我添加了一条屏幕密度 = 480 的线。这应该让三星 s5 等设备能够下载该应用程序。
在网上冲浪时,我发现为了避免从平板电脑下载应用程序,我应该删除专用于屏幕 xlarge 的部分。 但如果我这样做,我担心三星 s4 和三星 s5 等设备将无法下载我的应用程序。
这是真的吗?
【问题讨论】: