Noha Nhe
Noha Nhe

Reputation: 235

Android - press key programmatically

I'm developing an android application which uses w softkeyboard

What I want to do is to programmatically press a key on the keyboard

How can this be implemented?

Upvotes: 1

Views: 4380

Answers (1)

karllindmark
karllindmark

Reputation: 6071

Activity.dispatchKeyEvent(KeyEvent) is your friend in this case. :)

Upvotes: 3

Related Questions