[英]Testing touchscreen with Android Emulator?
Is it possible to simulate or test Touchscreen input with the Android Emulator? 是否可以使用Android模拟器模拟或测试触摸屏输入?
I'm working on a project which needs to support touchscreen input, but I don't have an Android phone myself. 我正在开发一个需要支持触摸屏输入的项目,但我自己没有Android手机。 However if I could use my mouse to simulate/test touchscreen support in my app, it would be perfect. 但是,如果我可以使用鼠标在我的应用程序中模拟/测试触摸屏支持,那将是完美的。
Yes, you can implement the OnTouchListener and then on the emulator you can use your mouse. 是的,您可以实现OnTouchListener,然后在模拟器上可以使用鼠标。
A small tutorial here 这是一个小教程
http://www.mybringback.com/tutorial-series/3279/android-the-basics-32-androids-ontouchlistener-and-motionevent/ http://www.mybringback.com/tutorial-series/3279/android-the-basics-32-androids-ontouchlistener-and-motionevent/
It's theoreticaly possible. 这在理论上是可能的。 But to date multitouch support requires a real Android 4.0 device to send multitouch input to the emulator. 但到目前为止,多点触控支持需要一个真正的Android 4.0设备才能向模拟器发送多点触控输入。 However, in this case you don't need the emulator and can test directly on the physical device. 但是,在这种情况下,您不需要模拟器,可以直接在物理设备上进行测试。
You can read latest information about multitouch support here . 您可以在此处阅读有关多点触控支持的最新信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.