I'm creating a form-based app where the user can navigate to next form with "Next" button and to previous form with "Back" button.
Each form basically has a few items which are clickable and have listener attached to them.
While clicking "Back" goes to displaying previous form but those events attached to those items are gone.
How can i keep those events intact?
What i do is define a Displayable object to point to that previous form
and then, set the displayable to that previous form once "back" is clicked.
private Display display;
private Displayable form;
display = Display.getDisplay(this);
form = display.getCurrent();
I just listed out the code snippets where it's relevant.
Please help on how to maintain the listeners for the items i mentioned above.