我开发了一款游戏并将其上传到Play商店。但它在1920x1080和1280x720分辨率的手机上不可见。清单文件如下:
<!-- Mandatory Permissions -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<!-- Optional Permissions (recommended)-->
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-permission android:name="android.permission.STORAGE"></uses-permission>
<uses-sdk android:minSdkVersion="11" />
<uses-sdk android:targetSdkVersion="14"/>
<supports-screens
android:largeScreens="true"
android:normalScreens="false"
android:smallScreens="false"
android:xlargeScreens="true"
android:anyDensity="true"
/>
游戏在Nexus 7(800x1280)三星Galaxy Tab2(600 x 1024)等上可见。我希望屏幕尺寸小于5英寸的设备无法在Play商店看到游戏因此保持{{ 1}}和smallScreens="false"
。我需要在Manifest文件中进行哪些更改,以便在PlayStore上显示游戏的1920x1080和1280x720分辨率设备和屏幕尺寸为5英寸,分辨率密度超过200dpi的设备?
答案 0 :(得分:1)
答案 1 :(得分:0)
不幸的是,没有办法根据物理尺寸确定设备。
您的问题请参阅::
希望它有所帮助!
答案 2 :(得分:0)
可能正在使用兼容的屏幕Tag会帮助你。
<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" />
<!-- all large size screens -->
<screen android:screenSize="large" android:screenDensity="ldpi" />
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
<!-- all xlarge screens -->
<screen android:screenSize="xlarge" android:screenDensity="ldpi" />
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
</compatible-screens>