I've tried several different ways to remove back navigation, and none of 
them work.  Here is my code.

On the splash screen, I navigate to the next form using

Form bForm = showForm("BForm", null);
bForm.setBackCommand(null);


Then, on the form


@Override
protected void beforeBForm(Form f) {
    f.setBackCommand(null);
    setBackCommandEnabled(false);
}


@Override
protected void postBForm(Form f) {
    f.setBackCommand(null);
    setBackCommandEnabled(false);
}


I figured one of these methods would have worked, but the back arrow 
persists! 

However, if I do click that back button, and navigate back to the splash 
screen, which forwards me again to the second form, *this time* the back 
arrow is gone. Through elimination, I discovered that any of the five 
approaches (using either setBackCommand or setBackCommandEnabled in either 
beforeBForm or setBackCommandEnabled, or bForm.setBackCommand!) will 
eliminate the back arrow this second time.

Thanks!

-- 
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/e35760b3-62c0-4513-8a33-f562f0f9ddd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to