Keyboard Input

Put your problem here if it does not fit any of the other categories.

Keyboard Input

Postby cre813 » Sun Jan 27, 2008 6:37 am

All:

Let's say I have an Activity with a TextView.

I want to have the Activity capture keystrokes, possibly act upon them and then possibly echo them to the TextView.

The Activity cannot have an EditView - it'll steal the focus.

The only way I can see to do this is to use a brute force method of interpreting KeyEvents, etc in the onKeyDown/onKeyUp method pair.

Is there a more elegant/cleaner way to accomplish this?

Thanks for your help!
cre813
Freshman
Freshman
 
Posts: 8
Joined: Fri Dec 28, 2007 6:57 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 13 guests