android - 如何防止非触摸手机看到Android Market中的应用程序

标签 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 会很好:)

最佳答案

作为documentation你从告诉你复制粘贴,使用两个 <uses-configuration>元素。

关于android - 如何防止非触摸手机看到Android Market中的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3108144/

相关文章:

java - 如何将图像合并到 SQLite 测验中?

android - 将Android源代码上传到真实设备

android - 获取 Widevine 许可证服务器 key

java - 无法将字符串转换为整数

java - BaseDaoImpl 有一个不可见的方法

java - 如何让 Activity 在暂停时对本地广播使用react?

java - 使用RelativeLayout时出现意外的黑色 View

android - PhoneGap 播放 m3u8 视频

android - 如何分析android应用程序的电池使用情况并进行优化?

android - 适用于 Android 的 IRC 库(从 2.3.3 到 4.0.3)?