我以为这会很简单,但我错了......
我的应用程序无法在非触控 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 会很好:)
最佳答案
作为documentation你从告诉你复制粘贴,使用两个 <uses-configuration>
元素。
关于android - 如何防止非触摸手机看到Android Market中的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3108144/