I am fresher in j2me. I like to implement an application that should detect central key of the S40 device.I use this code
if(keyCode==-5&&c==2) {
c=1;
repaint();
} else {
c=2;
repaint();
}
it work only on simulator and but not work in S40 device.Does anyone know how to solve this problem.