0

Google Play ストアでアプリを公開しましたが、Sony Xperia Z2、OnePlus2 などの多くのデバイスではサポートされていません。アプリのマニフェスト ファイルは次のとおりです。

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

<compatible-screens>

    <!-- small size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="small" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="small" />

    <!-- Only hdpi and xhdpi for normal size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="normal" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="normal" />

    <!-- all large size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="large" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="large" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="large" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="large" />

    <!-- all xlarge size screens -->
    <screen
        android:screenDensity="ldpi"
        android:screenSize="xlarge" />
    <screen
        android:screenDensity="mdpi"
        android:screenSize="xlarge" />
    <screen
        android:screenDensity="hdpi"
        android:screenSize="xlarge" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="xlarge" />

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

    <!-- Special case for Samsung S6, One Plus Two, Note 5 -->
    <screen
        android:screenDensity="560"
        android:screenSize="small" />
    <screen
        android:screenDensity="640"
        android:screenSize="small" />
    <screen
        android:screenDensity="560"
        android:screenSize="normal" />
    <screen
        android:screenDensity="640"
        android:screenSize="normal" />
    <screen
        android:screenDensity="560"
        android:screenSize="large" />
    <screen
        android:screenDensity="640"
        android:screenSize="large" />

</compatible-screens>

問題は〜400 dpiのデバイスにあると思います。これらのデバイスを自分のアプリでサポートできるようにするにはどうすればよいですか?

4

1 に答える 1

0

Android デベロッパードキュメントの

互換性のある画面から:

通常、このマニフェスト要素は使用しないでください。この要素を使用すると、リストにない画面構成のデバイスをユーザーが使用している場合にアプリケーションをインストールできないため、アプリケーションの潜在的なユーザー ベースを大幅に減らすことができます。アプリケーションが特定の画面構成でまったく機能しない場合は、最後の手段としてのみ使用してください。この要素を使用する代わりに、複数の画面をサポートするためのガイドに従って、さまざまな画面サイズと密度の代替レイアウトとビットマップを使用して、複数の画面をスケーラブルにサポートする必要があります。

画面のサイズや密度に関係なく、あらゆる種類のデバイスにアプリを配布する場合は<compatible-screens>、マニフェスト ファイルからタグを削除する必要があります。

あなたのマニフェスト ファイルから私が理解したところによると、あなたはすべてのデバイスをサポートしたいと考えています。その場合は<compatible-screens>、マニフェストからタグを完全に削除してください。

ただし、<compatible-screens>タグを使用してアプリの利用を特定の画面タイプに制限する必要がある場合は、xxhdpi 画面密度のデバイスをサポートするために、すべての画面サイズの<screen>エントリを追加する必要があります。android:screenDensity="480"あなたが言及したデバイス Xperia Z2 と One Plus 2 は xxhdpi バケットに分類され、上記のエントリを追加すると、これらのデバイスでアプリを利用できるようになります。

于 2016-06-20T19:46:25.007 に答える