Nexus 10 的兼容性问题

Posted

技术标签:

【中文标题】Nexus 10 的兼容性问题【英文标题】:Compatibility Issues with Nexus 10 【发布时间】:2013-08-30 14:11:13 【问题描述】:

无论我做什么,我都无法让我的应用程序被认为与我的 nexus 10 兼容。在 Play 商店中,我相信问题出在我的清单文件中,但我没有看到问题出在哪里。有什么建议吗?

我所看到的:Why my App is not showing up on tablets in Google Play?http://developer.android.com/guide/practices/compatibility.html

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="tv.lifechurch.lifegroupsjb"
    android:versionCode="6"
    android:versionName="1.1" >

    <uses-sdk
        android:minSdkVersion="16"
        android:targetSdkVersion="18" />

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

    <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 large 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" />
    </compatible-screens>


    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.BROADCAST_STICKY" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme"
        android:hardwareAccelerated="true" >
        <activity
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
            android:name=".FindALifeGroup"
            android:label="@string/title_activity_main"
            android:theme="@android:style/Theme.NoTitleBar"
            android:windowSoftInputMode="adjustNothing">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity 
            android:name=".LGSettings"
            android:label="@string/title_activity_main"
            android:windowSoftInputMode="adjustNothing"
            >
            <intent-filter>
                <action android:name="tv.lifechurch.LGSettings" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>

        </activity>
    </application>

</manifest>

【问题讨论】:

这有帮助吗? ***.com/questions/11691775/… 它会,但该解决方案仅适用于 nexus 7,我忘了提及.. @EugenMartynov 【参考方案1】:

一行代码解决了这一切!

<uses-feature android:name="android.hardware.telephony" android:required="false" />

【讨论】:

另外一个用于回答您自己的问题。

以上是关于Nexus 10 的兼容性问题的主要内容,如果未能解决你的问题,请参考以下文章

对 Android TV 应用与其他设备的兼容性感到困惑

Galaxy Nexus 和我自己的应用程序的 Android 4.3 不兼容问题

nexus会让电脑卡吗

发布兼容TS的JS库到nexus和npmjs

Hibernate4Hibernate5 和 DBCP 的兼容性问题

关于安装在win10上的oracle10g 兼容性问题