Back Command´s modification in LWUIT

897 views Asked by At

This is my first question. I will try to be clear.

I need to make a back command in LWUIT that allows me to go back to a previous form and pass some parameters for some modifications of the form.

I can not use the Form.getBackCommand() because it returns the default back command and with that command i can not pass the parameters as i want to do.

How can i do that?

:)

1

There are 1 answers

0
Mahdi Hijazi On BEST ANSWER
  1. First add the command to the form: Form.addCommand(new Command("Back"));

  2. Add CommandListener: Form.addCommandListener(new ActionListsner());

  3. In the ActionListener show the previous form previousForm.showBack();