One for key down, one for key up.
Log.v(“ThreeTips”, “#11”)
Mert Şimşek
171

Nice tip!

Here, you may want to use ACTION_UP instead of down depending on your needs. It is because when the user holds the button, ACTION_DOWN will be send periodically while the user is holding. When they leave the keyboard ACTION_UP is send.

Like what you read? Give Said Tahsin Dane a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.