The only way to do this is to disable the InputConnection by returning null from onCreateInputConnection, in which case the IME will go into compatibility mode and deliver text as raw input events. Note that this severely limits what it can do.
On Wed, May 6, 2009 at 4:39 PM, Yan Shi <shiyansu...@gmail.com> wrote: > > Hi > > I use the default InputMethodService. Can this be done? > > On May 7, 7:22 am, androidcrew <androidc...@googlemail.com> wrote: > > Hi, > > > > please post your code which is involved with the keyboard process. > > typically you need an eventlistener which you have to overwrite. > > > > On 7 Mai, 01:02, Yan Shi <shiyansu...@gmail.com> wrote: > > > > > Anyone please? > > > > > On May 6, 11:09 pm, Yan Shi <shiyansu...@gmail.com> wrote: > > > > > > Still need help... > > > > > > On May 6, 7:53 pm, Yan Shi <shiyansu...@gmail.com> wrote: > > > > > > > Still need help. I found there a flag in KeyEvent: > > > > > KeyEvent.FLAG_SOFTKEYBOARD. But how can I receive this keyevent? > The > > > > > key listener I registered never received any key events from soft > > > > > keyboard. > > > > > > > On May 6, 6:40 pm, Yan Shi <shiyansu...@gmail.com> wrote: > > > > > > > > What I want to do is that when a normal key (such as "A") is > pressed > > > > > > from the onscreen keyboard, I can be notified to do something > just > > > > > > like when that key is pressed from real keyboard. But it seems > > > > > > EditText can not receive onKey event from onScreen keyboard. > > > > > > > > How can I do that? > > > > > > > > Thanks! > > > -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---