开发者

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

开发者 https://www.devze.com 2023-03-31 14:11 出处:网络
I have an application that has not yet been optimised for xlarge tablet screens, so I have the following code the manifest:

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 a开发者_JAVA百科vailable 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>
0

精彩评论

暂无评论...
验证码 换一张
取 消