Please give me a solution how I can fire an event when user pressed CLEAR button, from a screen the screen not be a canvas it is a form which contain some text box. I am not able to fire any event on pressing clear button from this screen... If any one know this please help me as soon as possible it is very very urgent
Thanks & Regards Maddi
There is some one who control us is it true?
posted 12 years ago
You might be able to detect it with the ItemStateListener API, but it might not work on all phones...
Depending on what exactly you are wanting to detect, maybe you could have a seperate monitor thread that checks textField.getString() every, say, 250 milliseconds to see if the TextField's String has been shortened or cleared entirely. But having said that, I'm sure if this would work ok if the TextField maximises to full screen when it is being edited...