开发者

Is it possible for Android to return the number of samples per some X time from the touch screen?

开发者 https://www.devze.com 2023-01-19 21:44 出处:网络
Basically, I am trying to write a benchmark application to test the responsiveness of different Android devices\' touchscreens.I figured the best way to go about doing this is to write an application

Basically, I am trying to write a benchmark application to test the responsiveness of different Android devices' touchscreens. I figured the best way to go about doing this is to write an application that counts the number of samples returned from the touchscreen whenever it is touched. Unfortunately, I have no idea if this is possible and so far haven't found anything relevant to this idea.

I will most likely be using the MotionEvent class to determine when the touch screen is pressed, but what classes are available to determine the samples returned?

This is how I imagine my app to function:

  • Start app
  • Brief description开发者_JAVA技巧 screen, then button to begin testing
  • User touches an area of the screen
  • I haven't really determined how to do the output yet, but either part of the screen updates a real time graph, or the user just touches for some time and after he releases his finger from the screen, the app will output a new graph in a different activity.

Any help would be useful. Thanks!

0

精彩评论

暂无评论...
验证码 换一张
取 消