0

我不知道为什么 Xperia Z 或三星 Galaxy S4 等许多设备不支持我的应用程序。特别是不支持最新的设备和平板电脑。

这是我的清单:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.baoss_CDB"
android:versionCode="3"
android:versionName="1.2.1" >

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

<uses-sdk
    android:minSdkVersion="9"
    android:targetSdkVersion="17" />

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.CALL_PHONE" />

<application
    android:name="com.baoss.Misc.MyApplicationContext"
    android:icon="@drawable/cdb"
    android:label="@string/app_name"
    android:logo="@drawable/cdb"
    android:theme="@android:style/Theme.NoTitleBar" >
    <activity
        android:name="com.baoss.LoginActivity"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:windowSoftInputMode="stateHidden" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="com.baoss.MenuActivity"
        android:configChanges="keyboardHidden|orientation|screenSize" />
       ...
    <activity
        android:name="com.baoss.SettingTermsOfUseActivity"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
    </activity>
</application>

我希望你能帮助我=)。

4

1 回答 1

2

我能注意到的一件事是

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

事实上,许可意味着android.hardware.telephony功能,这些功能通常仅在手机上可用,而不在平板电脑上可用。尝试将该功能标记为不需要:

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

不要忘记在运行时检查当前设备是否具有电话功能:

PackageManager pm = getPackageManager();

if (pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY)){
    //Add the code for making call
}else{
    //Add the code for devices where telephony is not present, if needed
}
于 2013-05-21T08:14:28.933 回答