简体   繁体   中英

Testing touchscreen with Android Emulator?

Is it possible to simulate or test Touchscreen input with the Android Emulator?

I'm working on a project which needs to support touchscreen input, but I don't have an Android phone myself. 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.

A small tutorial here

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. 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM