Well it has ben quite some time i have been posting here but not quite getting any results. neways lets not stop trying .
I have a List item and i have populated it with all the contact names of my mobile phone.now i want to sort the names by perssing the key events. i.e. A for all the contacts starting with A and so on. now i have some logic that is doing it fine but the problem is that it is doing the same for onely once. please help me on this . or if anyone can tel me of some other logic.
if i remove the line prefixed with -- then it is handling all the key press events else. it is not going more than once. i am not able to findout what the problem might be . please help
protected void keyPressed(int keyCode)
char c = 'a';
if (keyCode >= '2' && keyCode <= '9')
c = this.toAlphabet((char)keyCode);
thanks in Advance.