android - 使App兼容平板安卓

标签 android tablet google-play

我想知道我必须更改哪些内容才能使我的应用与平板电脑兼容。

目前在 Play 商店中显示我的应用程序与平板电脑不兼容。 我只是为一些布局做了一个 xlarge 布局,我需要做什么? 谢谢

最佳答案

可能会有很多问题。我将解释其中的一些。

Play 商店根据要求检测设备。我的意思是,如果您添加了拨号权限或平板电脑中未包含的某些权限。它不会下载。利用 使用功能而不是权限并将所需的属性设置为 false。

<uses-permission android:name="android.permission.CALL_PHONE" android:required="false"/>

使用下面的代码代替上面的代码

<uses-feature android:name="android.permission.CALL_PHONE"  android:required="false"/>

支持屏幕

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


<compatible-screens>
    <!--no small size screens -->


    <!--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 size 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" />

    <!-- Special case for Nexus 7 -->
    <screen android:screenSize="large" android:screenDensity="213" />

</compatible-screens>

对于 xxhdpi

 <screen android:screenSize="normal" android:screenDensity="480" />
     <screen android:screenSize="large" android:screenDensity="480" />
     <screen android:screenSize="xlarge" android:screenDensity="480" />`

查看详情 here ..

关于android - 使App兼容平板安卓,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24383905/

相关文章:

java - 支持按索引和键排序、插入和查找的集合/映射

android zoom mapView like map App

Android:使用平板电脑模拟其他设备?

google-play - 应用发布的电话号码注册失败

android-manifest - Android 应用程序未出现在 1.5 和 1.6 设备的市场中,蓝牙是 android :required ="false"

android - 在 imageview 上显示的图像使应用程序崩溃

android - Android 版 Parse.com : GetCallback implementation of "done" method

android - 平板电脑和服务器之间的双向实时通信系统

android - 在市场上找不到应用程序

android - 将Android应用发布到Google Play商店时遇到麻烦。 “Fully Shadowed APK”