07-26-2011 02:19 AM
07-26-2011 07:55 AM
@abhishek_puppalwar: I can confirm you that the two code snippets you provided are working fine. I think that the code you are actual ly using may not be the same.
Can the num_Field on the dialog be got focus?
07-26-2011 10:32 AM
Figured it out - the problem is in this little piece of code in your popup screen:
}
protected boolean keyDown(int keycode, int time) {
if(keycode == 1769472){
close();
}
return true;
See that "return true" there? It indicates that the screen has consumed the event, thus the field never gets a chance of getting it. A proper way would be to return true inside the if, right after close(), and return super.keyDown(keycode, time) otherwise. Returning false would also work here, but returning super.... is a cleaner way.
07-28-2011 02:28 AM