Android 仅支持智能手机设备
我希望我的应用程序只能在智能手机上运行,而与密度无关。 所以我有几个问题。 我应该使用Android 仅支持智能手机设备,android,Android,我希望我的应用程序只能在智能手机上运行,而与密度无关。 所以我有几个问题。 我应该使用还是?有什么区别?Google Play将使用哪个标签过滤应用程序列表? 这是正确的方法吗 <supports-screens android:anyDensity="true" android:largestWidthLimitDp="500" android:normalScreens="true" android:smallScreens="true" and
还是
?有什么区别?Google Play将使用哪个标签过滤应用程序列表?
这是正确的方法吗
<supports-screens
android:anyDensity="true"
android:largestWidthLimitDp="500"
android:normalScreens="true"
android:smallScreens="true"
android:largeScreens="false"
android:xlargeScreens="false" />
<compatible-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"/>
<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>
我读过关于这个论点的不同问题,但答案不同
我应该使用
还是
对于您的用例,
,如中所述
有什么区别
对于您的用例,
将起作用,
将不起作用<代码>只是一个过滤器,用于比您声明支持的更小的尺寸,而不是更大的尺寸
Google Play将使用哪个标签过滤应用程序列表
总的来说,两者都是。对于您的用例,您只能通过
表达您想要的内容
这是正确的方法吗
<supports-screens
android:anyDensity="true"
android:largestWidthLimitDp="500"
android:normalScreens="true"
android:smallScreens="true"
android:largeScreens="false"
android:xlargeScreens="false" />
<compatible-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"/>
<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>
没有,因为您缺少一些密度(
tvdpi
,xxhdpi
,xxxhdpi
)。否则,就可以了。请查看此链接并发布完整的android清单文件。只有这些参数不用于设备筛选。权限/使用功能标签也会进入过滤器谢谢!还有一个问题,鉴于Galaxy S5的屏幕为5.2英寸,而我的应用程序与大屏幕不兼容,我的应用程序是否与Galaxy S5兼容?@DanieleVitali:如果三星宣布他们的设备为-large
,您将无法使用该设备。我现在手头没有我的S5,所以我不能告诉你他们选择了什么尺寸的水桶。