如何防止非触控手机在Android Market中查看应用程序

时间:2010-06-24 07:59:55

标签: android

我认为这很容易,但我错了......

我的应用程序无法在非触摸式Android设备上运行,因此我不希望它出现在市场上。

我希望找到一个在AndroidManifest.xml中设置的属性,但我能找到的最接近的匹配是:

android:reqTouchScreen

The type of touch screen the application requires, if any at all. The value must be one of the following strings: 

Value   Description
"undefined" The application doesn't require a touch screen. (The touch screen requirement is undefined.) This is the default value.
"notouch"   The application doesn't require a touch screen.
"stylus"    The application requires a touch screen that's operated with a stylus.
"finger"    The application requires a touch screen that can be operated with a finger.

所以我想做的是将reqTouchScreen设置为手写笔和手指,这是不允许的。或者,一个简单的reqTouchScreen = yes会很好:)

1 个答案:

答案 0 :(得分:4)

当您复制并粘贴的documentation告诉您时,请使用两个<uses-configuration>元素。