我想知道我必須更改我的應用程序與平板電腦兼容的所有內容。使應用程序兼容平板電腦Android
目前Play商店顯示我的應用程序與平板電腦不兼容。 我只是做了一些佈局xlarge佈局,我需要做什麼? 謝謝
我想知道我必須更改我的應用程序與平板電腦兼容的所有內容。使應用程序兼容平板電腦Android
目前Play商店顯示我的應用程序與平板電腦不兼容。 我只是做了一些佈局xlarge佈局,我需要做什麼? 謝謝
將以下代碼添加到您的android manifest.xml
文件中以使應用程序平板電腦兼容。
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true" />
嘗試在AndroidManifest.xml
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
我有清單中的以下權限。我的應用會顯示平板電腦嗎? https://gist.github.com/anonymous/985de509ae8d68d72bf3 –
增加這個功能可能有很多問題。我將解釋其中的一些。
根據他們的需求播放存儲檢測設備。我的意思是如果您添加了DiAL權限或某些未包含在平板電腦中的權限。它不會下載。使用 uses-feature而不是權限,並將required屬性設置爲false。
<uses-permission android:name="android.permission.CALL_PHONE" android:required="false"/>
使用下面的代碼而不是上面
<uses-feature android:name="android.permission.CALL_PHONE" android:required="false"/>
和
爲supprot屏幕
<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 ..
我在清單中擁有以下權限。我的應用會顯示平板電腦嗎? https://gist.github.com/anonymous/985de509ae8d68d72bf3 –
檢出:http://stackoverflow.com/questions/4955375/android-smartphone-app-support-for-android-tablet –
該平板電腦可能不支持您的應用所需的某些功能。
檢查清單以下特點 -
http://developer.android.com/guide/topics/manifest/uses-feature-element.html。
<uses-feature>
聲明的目的是通知任何外部實體您的應用程序所依賴的一組硬件和軟件功能。
爲了防止應用程序無意中可用,Google Play
假定某些硬件相關權限表示默認情況下需要基礎硬件功能。
例如,使用藍牙必須要求BLUETOOTH
許可在<uses-permission>
元素的應用 - 對遺留應用程序,谷歌播放假定許可聲明意味着,底層android.hardware.bluetooth
功能所需的應用程序,並設置濾波基於該特徵。
對於以下任何權限,可以通過在<uses-feature>
元素中明確聲明隱含功能,並使用android:required="false"
屬性明確聲明隱含功能來禁用過濾。例如,要禁用基於攝像頭權限任何過濾,你會變成這樣<uses-feature>
聲明添加到清單文件:
<uses-feature android:name="android.hardware.camera" android:required="false" />
正如@ ILMostro_7在評論中指出,你應該android:required="false"
排查並確定哪些功能缺失在您的平板電腦上導致該應用程序未在Google Play中顯示。
如果功能在平板電腦中不受支持,但在清單文件中聲明,但未明確聲明爲android:required="false"
,則該平板電腦將從Google Play中濾除。
因此,本質上,搜索使用特徵行代碼並檢查哪一個是問題的原因;排除故障與'android:required =「false」' –
@ ILMostro_7 - 的確如此。如果功能在平板電腦中不受支持,但未在明確聲明爲android:required =「false」的情況下在清單文件中聲明,則該平板電腦將從Google Play中濾除。 –
我在清單中擁有以下權限。我的應用會顯示平板電腦嗎? https://gist.github.com/anonymous/985de509ae8d68d72bf3 –
請參閱[上一個問題](http://stackoverflow.com/questions/10832664/app-not-compatible-with-tablet)作爲可能的副本;以及[這個問題](http://stackoverflow.com/questions/15733070/why-is-app-not-compatible-with-tablets-after-update)以及可能更多,首先做一個徹底的搜索。 –
[爲什麼我的應用沒有顯示在Google Play平板電腦上?](http://stackoverflow.com/questions/11691775/why-my-app-is-not-showing-up-on-tablets-在谷歌播放) –