back button

could someone share a piece of source code to manage the back button in stb? (i know that it's not a standard button in MHP, but i see that italian applications use it).Thank you,djeghe
[207 byte] By [djeghea] at [2007-10-2 17:20:23]
# 1
I can't understand your question! Could you describe more detail about your question?
cjliua at 2007-7-13 18:36:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
Which event, or events, do you listen in a KeyListener?
djeghea at 2007-7-13 18:36:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3

I'm not quite sure what you mean in your question, but:

1) You can catch the "Back" key in the same way they you would catch any other key press. You just need to know what key code the firmware manufacturer has assigned to the key. As you've already said, this is not one of the standard keys that have been defined, so you'll need to either:

a) Find some documentation from the manufacturer as to what they've done

b) Experiment. The easiest thing to do is to write the key code of every key you catch in the key handler to either a serial/debug port (if you've got one) or to a HAVI gadget on the screen. Press the "Back" key and you've got your key code.

2) Reverting to some previous state in your application when the Back Key is pressed will not automatically be handled by the STB. You'll need to implement this your self. This will involve you deciding what exactly you mean by going back.

Hope this helps,

Roger

_Roger_a at 2007-7-13 18:36:22 > top of Java-index,Java Mobility Forums,Consumer and Commerce...