我认为您可以在 AndroidManifest 文件中执行您需要的操作。例如,您可以选择仅支持超大屏幕分辨率,如下所示:
<supports-screens android:resizeable="false"
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="false"
android:xlargeScreens="true"
android:anyDensity="true" />
这些尺寸在下面的链接中定义,例如“正常”是中等密度的 HVGA。请阅读下面的链接了解更多详细信息。
http://developer.android.com/guide/topics/manifest/supports-screens-element.html http://developer.android.com/guide/topics/manifest/supports-screens-element.html
“如果您的应用程序不支持小屏幕,那么系统无法做太多事情来使应用程序在较小的屏幕上正常运行,因此外部服务(例如 Android Market)不应允许用户在较小的屏幕上安装应用程序屏幕。”
您可能还需要设置该元素,虽然我自己没有尝试过,但它似乎符合您想要的:
http://developer.android.com/guide/topics/manifest/completed-screens-element.html http://developer.android.com/guide/topics/manifest/compatible-screens-element.html
“Android 系统不会读取清单元素(无论是在安装时还是在运行时)。该元素仅供参考,可由外部服务(例如 Android Market)使用,以更好地了解应用程序与特定屏幕配置的兼容性,以及为用户启用过滤。任何未在此元素中声明的屏幕配置都是与应用程序不兼容的屏幕。因此,外部服务(例如 Android Market)不应向具有此类屏幕的设备提供应用程序。
您还需要在这里阅读更多内容,看看市场如何处理所有这些信息:
http://developer.android.com/guide/appendix/market-filters.html http://developer.android.com/guide/appendix/market-filters.html
由于我没有尝试过这一点,因此我不清楚您的应用程序是否应该使用我上面提到的两个元素,但市场过滤器页面可能解释了要使用哪些元素。