我有一个问题:
在其清单文件中指定- uses-feature ... "android.hardware.faketouch" android:required="true"的应用程序也将在市场上展示如何在触摸屏设备上运行的应用程序?
发布于 2011-07-26 15:56:33
如果您指定了对android.hardware.faketouch的要求,则所有正版触摸设备仍将看到列出的应用程序。
faketouch是touchscreen的超集,因此任何拥有真正触摸屏的人都隐含地支持faketouch,因为他们可以执行它支持的所有操作。
但是,Market有一个小问题,您需要覆盖隐式触摸屏条目并将required=false添加到其中。如果做不到这一点,将意味着市场按要求同时列出了触摸屏和faketouch,因此仍然没有将其显示给仅限faketouch的设备。
因此,您的清单应包含:
<uses-feature android:name="android.hardware.faketouch"/>
<uses-feature android:required="false" android:name="android.hardware.touchscreen"/>这将允许您的应用程序显示全范围的设备,包括只有faketouch。
发布于 2018-08-29 08:54:49
http://www.saschahlusiak.de/2012/10/android-hardware-faketouch-vs-android-hardware-touchscreen/
默认情况下,安卓应用程序需要android.hardware.touchscreen功能,然后在Google Play中用于过滤,因此只有具有触摸屏功能的设备才能安装该应用程序。
除此之外,还有一个更基本的特性,android.hardware.faketouch。
如果应用程序不需要触摸屏功能,建议将android.hardware.touchscreen设置为不需要,而是声明android.hardware.faketouch。
如果您这样做了,请检查Google Play上的结果,其中显示了支持的设备数量:
需要
https://stackoverflow.com/questions/6528167
复制相似问题