Question

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?

:)

Was it helpful?

Solution

  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();

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top