On Tue, Mar 17, 2009 at 1:50 AM, Daniel <[email protected]>wrote:

> The problem is that SoftKeyboard.onKeyDown is called even if the soft
> keyboard is closed (after it was visible once).


Yes, it is called for every key event.  That allows you to write traditional
input methods for qwerty input.


> And I currently have
> no way to find out if I should process the key events without changing
> class InputMethodService (I currently use the mShowInputRequested
> variable as in InputMethodService.onKeyDown).


InputMethodService.isShowInputRequested()


> So what I don't like
> with my solution is that I have to change code that is not part of the
> public API. But it works for me now ;-)


I am not going to spend much time helping people who are hacking around the
SDK.  Seriously. :/

-- 
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.  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-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to