When i use this method, its throws illegal state expression on blackberry simulator.
protected boolean keyChar(char c, int status, int time)
{
if (c == Keypad.KEY_ESCAPE)
{
UiApplication.getUiApplication().popScreen(UiApplication.getUiApplication().getActiveScreen());
}
return super.keyChar(c, status, time);
}
if i give the return type true, No error display on simulator.
when i use the super.keyChar(c,status,time). it throw illegal state expression.
But in device no error display. Only on blackberry simulator. wht is the problem on it.
try this: