문제

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top