I would like to access my app's native hardware back button to go to a previous form. Sounds trivial, but I am running into a series of issues, when using the approaches found around here:
Command back = new Command("Back") {
public void actionPerformed(ActionEvent ev) {
showBack();
}
};
or
Command back = new Command("Back") {
public void actionPerformed(ActionEvent ev) {
showPreviousForm();
}
};
for both the approaches I get an error message :
The method showBack() is undefined for the type new Command(){}
or
The method PreviousForm() is undefined for the type new Command(){}
Has there been a change in methods? Is there are different approach?
Thanks in advance for any response.