IMEs perform their edits through the InputConnection interface.  Apps should
generally watch for edits on the text view rather than catching key events.

On Sat, Sep 26, 2009 at 9:40 AM, CG <[email protected]> wrote:

>
> Dear all,
>
> I'm writing a little dictionary application for Android 1.5, and I'd
> like to catch the user's keystrokes in an EditText instance. The
> following code recognizes all keys, which are typed in in the Android
> emulator:
>
>  new EditText(this) {
>   @Override
>   public boolean onKeyUp(final int key, final KeyEvent event) {
>     Log.i("Key:", Integer.toString(key));
>   }
>  };
>
> ..which is fine! But I open and use the soft keyboard, most input
> (except for e.g. the ENTER key) is ignored. Could anyone tell me
> what's the best/easiest way to identify and process these user inputs?
>
> Thanks for your attention,
> Christian
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to