Question

J'ai développé une application pour Galaxy Note qui utilise le stylo S.Je voudrais le rendre disponible uniquement pour Galaxy Note.Je crois comprendre que la note Galaxy a un grand écran XDPI.

J'ai ajouté ceci dans mon androidmanifest.xml:

<compatible-screens>
  <screen android:screenSize="large" android:screenDensity="xhdpi"/>
</compatible-screens>

Mais quand je le publie, le GT-N7000 (Galaxy Note) apparaît comme incompatible à cause de mon manifeste. J'ai essayé d'autres combinaisons d'écrans compatibles, mais cela montre toujours la note Galaxy comme incompatible.

En fait, j'ai même essayé cela (Minssdkversion= 3 et tous les compables d'écrans) et la note est toujours marquée incompatible ...:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.testnote.testnote"
        android:versionCode="10012"
        android:versionName="1.0.12">
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE"/>

<uses-sdk android:minSdkVersion="3" 
            android:targetSdkVersion="9"/>
    <compatible-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"/>

    <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"/>

    <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"/>

    <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>

<application android:label="@string/app_name" android:icon="@drawable/icon">
    <activity android:name="testtest"
                android:label="@string/app_name">
        <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>
</manifest>

Suppression du filtre à écran fait de la note Galaxy Compatible, mais je ne peux tout simplement pas supprimer tous les périphériques un par un ...

Était-ce utile?

La solution

if you only want to enable one device, you're better off manually selecting it (by model name) in the market admin page.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top