09-19-2008 01:14 PM
Dear Sir/Madam,
How can I detect pressing Volume Up/Down Key?
I have tried to capture it by KeyDown event of MainScreen. It does not work. (i.e. not dialog pop up. for other key like escape, camera, make call, end call, they are working)
//Inside MainScreen
public boolean keyDown(int keycode, int time) {
Dialog.alert("Key Down ="+ keycode);
return super.keyDown(keycode, time);
}
Thanks.
09-19-2008 01:31 PM
09-19-2008 02:00 PM
Thanks, richard_puckett. It is working!
BTW, I can only use KeyChar to detect Characters.ESCAPE but cannot use KeyControl.
However, for Characters.CONTROL_VOLUME_UP, I cannot use KeyControl.
Do you know what the reason it?
Many Thanks.
09-19-2008 02:21 PM
Hi rickysiu,
Could you post up the code that makes keyControl work? I am playing with getting some functionality off these buttons, but I have no idea how to make it work
Thanks
09-19-2008 02:49 PM
09-19-2008 03:54 PM
Thank you...
public class Example1 extends FlowFieldManager
My issue is with the actual body of code I should be extending FlowFieldManager? or Manager? (Sorry I am very new, I can research on how to do this - I didn't mean to highjack your thread with my own questions)