简体   繁体   中英

How can I ensure that my app is only available to phones on Android Market?

I have an application that has not yet been optimised for xlarge tablet screens, so I have the following code the manifest:

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

However, when I upload the .apk file to Android Market, it tells me:

API level: 4-12+
Supported screens: small-xlarge
OpenGL textures: all

I know that it is currently possible to filter an application to only run on phones with:

<uses-sdk android:maxSdkVersion="10" />

...but I want the application to be available for phones running Ice Cream Sandwich when they appear.

did you try using: http://developer.android.com/guide/topics/manifest/compatible-screens-element.html

<compatible-screens>    

Android Market filters the application if the device screen size and density does not match any of the screen configurations ....

Alright, I found the solution.

If I remove this line from the xml it works out:

<gap:config-file platform="android" parent="/manifest">
    <supports-screens 
        android:xlargeScreens="false"  />
</gap:config-file>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM