Hi Shai,
I am not sure, where you are seeing that button marked as back
command. Actually the button which is causing the problem is not
marked as back command. However in the beforeS2PayID() method(of the
form where this button was added) we have added the following code:
protected void beforeS2PayID(Form f) {
// TODO Auto-generated method stub
super.beforeS2PayID(f);
Command back = new Command("Back") {
public void actionPerformed(ActionEvent evt) {
if (orderFromMenuMode) {
orderFromMenuMode = false;
setBackDestination("MainUI");
}
back();
}
};
f.setBackCommand(back);
}
This is done so that when using the hardware back button on the
android devices, we want to clear the navigation stack and take user
to the main ui.
However somehow, the button in this form is not getting any action
events. Please note in the simulator if you bring the focus to that
button using keyboard, and then press Enter key, then it fires the
actionListener event.
Thanks,
Nirmal