Is it possible to use unit test multitouch on android?

I am trying to do a unit test for the application that I am writing. I want to check the graphics performance on various scaling operations, but I cannot figure out how to send events containing two pointers.

+3
source share
1 answer

This was not possible until the advent of API 9 / Android 2.3 / Gingerbread. You MotionEvent#obtaincan use the method to create one MotionEventthat contains several pointers, which you can then send to your views for testing. (Remember recycle() MotionEventwhen you are done with it.)

+4
source

All Articles