Tôi gặp sự cố khi tải tệp kê khai của mình tương thích với nhiều điện thoại mới hơn khi tôi tải lên tệp APK mới và tôi không hiểu tại sao. Tôi đang thử nghiệm nó trên một thương hiệu mới HTC Evo V, nhưng vì lý do gì, thiết bị đó sẽ không hiển thị trong danh sách tương thích.Tối ưu hóa tệp kê khai Android cho số lượng thiết bị được hỗ trợ lớn nhất
Tôi đang biên dịch API 17 với hỗ trợ tối thiểu là API 10, do đó phải bao gồm phần lớn điện thoại.
Những gì tôi đã cố gắng:
- Removed tất cả các quyền; không thay đổi
- Đã cố gắng tạo WIFI không bắt buộc; không thay đổi
- Đã xóa
installLocation
để xem liệu nó có tạo sự khác biệt hay không; không thay đổi - Thậm chí đã thử thêm hỗ trợ màn hình nhỏ để xem nó có hiển thị hay không; không thay đổi
Những gì tôi đã đọc:
- http://developer.android.com/google/play/filters.html
- http://developer.android.com/guide/practices/screens-distribution.html
- http://developer.android.com/guide/practices/compatibility.html
- http://developer.android.com/guide/topics/manifest/manifest-intro.html
file manifest của tôi:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.somecompany.appname"
android:versionCode="10"
android:versionName="1.0"
android:installLocation="preferExternal">
<!-- For expansion pack downloads -->
<!-- Required to access Android Market Licensing -->
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
<!-- Required to download files from Android Market -->
<uses-permission android:name="android.permission.INTERNET" />
<!-- Required to keep CPU alive while downloading files (NOT to keep screen awake) -->
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Required to poll the state of the network connection and respond to changes -->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<!-- Required to check whether Wi-Fi is enabled -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<!-- Required to read and write the expansion files on shared storage -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17"/>
<supports-screens android:normalScreens="true"/>
<supports-screens android:largeScreens="true"/>
<supports-screens android:xlargeScreens="true"/>
<compatible-screens>
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
</compatible-screens>
<application android:icon="@drawable/icon" android:label="@string/app_name" android:allowBackup="false">
<activity android:name="somecompany.appname.SplashScreen"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="somecompany.appname.SoundAndCallActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar"/>
<activity android:name="somecompany.appname.MainScreenActivity" android:screenOrientation="portrait" android:theme="@android:style/Theme.NoTitleBar"/>
<activity android:name="somecompany.appname.SettingsActivity" android:screenOrientation="portrait" android:theme="@style/Theme.Transparent"/>
</application>
</manifest>
Dường như hữu ích Thx –
@Arash Tôi hiện đang chuyển đổi sang thế giới của Android, vì vậy hy vọng điều này sẽ giúp một vài người khác. – iwasrobbed
Cảm ơn lời khuyên, nó thực sự hữu ích –