Hi all group members, I am facing a problem any one can help me regarding this.
I have an EditText and a list of contacts. I want to search a contacts on maching with characters entered in EditText field. In my activity I have implemented "OnKeyListener" . and in onCreat (){ searchField = (EditText)findViewById(R.id.search_field); searchField.setOnKeyListener(this); } and i have also implemented the method like this public boolean onKey(View v, int keyCode, KeyEvent event) { //Here i am getting text from my search field and comparing with contacts and updating contacts list } When i pressed keys like (abc ---> xyz or 0 -->9 or any key) from my computer key board or keyboard which is displaying on right side of the emulator my code is working fine. Currently I am using HTC Magic Emulator and Device also. *******Its workin fine for me****** But now move to issue-->>> when i touch EditText field a software keyboard launched and when i pressed any key from my screen keyboard its not giving me the events in onKey() method in other words its not calling onKey(){} method. but this method is called on specific keys like (0 to 9 and Delete key). I have also implement "keyListener" interface and its 4 to 5 methods like keyUp(), keyDown(),etc but when i implement "keyListener" softkeyboard is not launching on touching my EditText field. Any useful solution would be highly appriciated. Thanks in advance. Gulfam Hassan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---