use*_*943 4 java xml eclipse android google-play
我在Google Play商店发布了一款应用.这个应用程序是专为手机设计的,我已经通过编辑清单文件中的compatible-screens元素使其无法用于平板电脑.
问题是一些大屏幕尺寸(超过5英寸)的手机也无法在Google Play商店"看到"我的应用.例如,我在Play商店中找不到我的应用程序来自三星galaxy note 4(5.7英寸,1440 x 2560像素,~515 ppi).
我应该如何设置兼容屏幕元素,以便准确分离手机和平板电脑?
<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" />
<screen android:screenSize="normal" android:screenDensity="480" />
<screen android:screenSize="normal" android:screenDensity="560" />
</compatible-screens>
Run Code Online (Sandbox Code Playgroud)
当我第一次发布我的应用程序时,我遇到了与nexus 6相同的问题.但我通过添加以下行来修复它:
<screen android:screenSize="normal" android:screenDensity="480" />
<screen android:screenSize="normal" android:screenDensity="560" />
Run Code Online (Sandbox Code Playgroud)
之后,我的应用程序可用于nexus 6,仍然无法用于平板电脑.我怎么能让三星Galaxy note 4也能看到它?
小智 6
要为Samsung Galaxy note 4提供支持,请在清单中添加给定的代码段
<compatible-screens>
<screen
android:screenDensity="640"
android:screenSize="normal" />
</compatible-screens>
Run Code Online (Sandbox Code Playgroud)
此外,至少提供一个xxxhdpi应用程序图标,因为设备可以在启动器上显示大型应用程序图标.
| 归档时间: |
|
| 查看次数: |
1345 次 |
| 最近记录: |