Listen to Virtual Keyboard events when within an EditText

by roma » Wed, 17 Mar 2010 01:09:43 GMT


Sponsored Links
 I have confirmed it by making various attempts with this listener, it
will not work for alphabetic inputs from the virtual keyboard on
device. You can use the TextWatcher instead which can serve the
purpose if you dont want to specifically catch the onKeyUp() and
onKeyDown() events. It works pretty fine.

You can try adding the textWatcher using the
addTextChangeListener(textWatcher) on a textView or its subclass
views.

Hope this helps!

--



Other Threads

1. How to capture long press of menu button

How can I capture a long press of the device menu button in my application?
I thought of an intent filter, but there's only an action called android.intent.action.SEARCH_LONG_PRESS, but nothing for the MENU button. I found that long press of the menu button actually does different things on different devices, i.e. on Nexus One it will show the soft keyboard, while on Samsung Galaxy S it will pop up the search widget. Generally, I want to suppress this behaviour in my app. (I already looked on StackOverflow.com for some hints but only found unanswered posts.) --

2. Drag and drop an image from a Gridview

Hi everybody!

I have just implemented the onClick event in the items inside a
GridView, but now, I need the next behaviour:
When I press on an item by a long click, I want to move the item to
other part of the screen. Basically, is a drag and drop of an image by
a long click.
Could anybody possibly help me with an example of this behaviour?

Thanks in advance!

-- 

3. Failed to create memory map of /dev/graphics/fb0

4. Not sure what is causing delay...

5. T-Mobile G1 won't appear in 'adb devices' list

6. Regarding partnership opportunity with MobiQpons to monetize your app.

7. Apps availability on US Market