To remove the back command from all forms override:
protected void setBackCommand(Form f, Command backCommand) {
}
This will effectively disable it completely.
To remove it from a specific form destination override:
protected boolean allowBackTo(String formName) {
return !("form-i-dont-want-to-go-back-to".equals(formName) ||
"other-form-i-dont-want-to-go-back-to".equals(formName));
}
There is a lot about this in stack overflow too:
http://stackoverflow.com/search?q=[codenameone]+back+command
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/27237e0d-c722-4441-a286-f841779442f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.