How to make KeyDown and KeyUp on android device?
I have a question. I'm making Keystroke dynamics app on android devices. For now, I make an Activity with measure string and EditText . I want to catch KeyDown and KeyUp events on software keyboard. My question is, what is the best way to catch KeyUp and KeyDown on Android with Java? If EditText is a good choice? If it have methods to catch any keypresses? EDIT I want to detect keys from string above and measure time of pressing it, (start measure on KeyDown and stop on KeyUp for example). If its possible, i want to block other keys that is not mentioned in my test string (its 9RJhl6aH0n ,