Search code examples
androidtimetap

Android, Calculate taps per second?


The title is pretty much self explanatory, i want when the user taps rapidly on the screen to accurately as possible count the current 'taps per second' any ideas?

thanks


Solution

  • Here's the solution I think its possible to do:

    1. Set a Timer
    2. Invoke View's onTouch (to do this, you may need to create a custom view), self increase 1 for each touch
    3. Do calculation