OnKeyListener Not working

by Guillaume Imbert » Thu, 03 Mar 2011 04:27:50 GMT

Sponsored Links

I try to apply treatment onto EditText.
To do so in Android 1.5 a few months ago I used the View.OnKeyListener
interface and everything worked fine.

Now I uploaded my application onto a Android 2.2 device (and also
virtual device) and it doesn't work anymore, except the OK key, that
is still captured.

My EditText is binded to the controller through my Controller
constructor :

       public TextController(EditText textBox) {
                boxSize = textBox.getText().toString().length();
                text = textBox.getText().toString();

the onKey method is triggered only while hitting the DEL key and the
OK key

Has anyone already experienced this?


Other Threads

1. Submitting user login details to a web site

Hi, I have a login page to login to a site they provide XML and SOAP
apis for subitting the authetivcting data.
How can i login to a web site from my android application.

say  I m creating an application in which i want to login to a site,
say orkut or any shopping site. how can i submit the userid and
password to that site and validate it...

thanks and regards


2. Map and Overlay

Hi there,
I've a question. I coded a programm which shows me a position in SF.
But now I'll start these programm with a button.
So I've a class named MapViewer where I create the Points and the
OverlayCo, the Buttons, the MapView etc. and I've a class
MapViewerOverlay with a draw function in it. Now my question  how can
I start these Overlay class when I press the button.
Thank you


3. Can't launch from Eclipse Plugin

4. video basic sample

5. The Code One

6. Convert Android application in android web application

7. selecting text