Hi, i am quiet new to J2ME GUI programming (or developing with java in general), so this question might sound very basic to some of you. I am going to ask it anyway since i can't figure out how to do this. Here it is:
I programmed a bluetooth TV-Remote control for cellphones in J2ME using javax.microedition.lcdui.* (Gauge, List, ChoiseGroup) GUI-Elements, but since i want realtime interaction with my TV, i would like to find way to send user inputs performed with the GUI-Elements immediately (e.g. changing the channel, or changing the volume) to the TV. Using javax.microedition.lcdui.Command / CommandListner and commandAction won't work since these need only recognize the commands selected with the side buttons. I would like to have something that can recognize any key pressed. I.e. if i increase the Gauge with the cursor keys, this changes need to be send to the TV in realtime (as they are pressed). I discovered that Javax.microedition.lcdui.Canvas.keyPressed can handle any key pressed on the cellphone, but i don't know how to make Canvas work with MIDP GUI elements like Gauge. They can't be added like Commands.
Is there a easy way to do this, or do i have to figure out way to build a interface for these GUI elements to make them work with Canvas.
Thanks in advance!
Best regards,
zhengtonic