【问题标题】:Compatibility issue with HTC Explorer / Desire C (320 x 480 Screen Resolution)HTC Explorer / Desire C(320 x 480 屏幕分辨率)的兼容性问题
【发布时间】:2013-07-15 11:58:28
【问题描述】:

我已将我的应用程序上传到 Google Play 商店,并在 Android 清单中提供以下权限和屏幕支持。

当我查看兼容设备列表时,它没有显示屏幕分辨率为 320 x 480 像素的设备,例如 HTC Explorer。请建议我需要在 Manifest.XML 文件中进行哪些更改以实现兼容性

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



 <uses-permission android:name="android.permission.CAMERA"/>
  <uses-permission android:name="android.permission.READ_CONTACTS"/>
  <uses-permission android:name="android.permission.WRITE_CONTACTS"/>
  <uses-permission android:name="android.permission.INTERNET"/>
  <uses-permission android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS"/>
  <uses-permission android:name="android.permission.VIBRATE"/>
  <uses-permission android:name="android.permission.FLASHLIGHT"/>  
 <uses-feature android:name="android.hardware.camera" />
 <uses-feature android:name="android.hardware.camera.autofocus" />

【问题讨论】:

    标签: android android-manifest android-compatibility


    【解决方案1】:

    在Manifest文件中设置这个标签,根据你的应用设置true或者false来支持

    <supports-screens
            android:anyDensity="true"
            android:largeScreens="true"
            android:normalScreens="true"
            android:smallScreens="true"
            android:xlargeScreens="true" />
    

    anyDensity = 支持所有分辨率

    largeScreens = 7 英寸平板电脑 (600x1024)

    normalScreens = 普通屏幕 (480x800)

    smallScrens = 小屏幕(320x480,240x360)

    XlargeScreens = 10 英寸平板电脑(720x1280、800x1280 等)

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多