Back Button not working as expected. What may I be doing wrong?

26 views
Skip to first unread message

tiago...@alidata.com.pt

unread,
Jan 7, 2014, 5:59:01 AM1/7/14
to codenameone...@googlegroups.com
Hello everyone. 

Currently I was having troubles with Android Back Button behavior. My app goes to background as soon as I press back and I don't know why.
Also, this is not working as it should.
showForm("Form", Display.getInstance().getCurrent().getBackCommand());

It moves to specified form but does not have correct animation. Behaves the same as a this.
showForm("Form", null);

But if I create a simple new project it works as expected and also does that showForm method using "back animation".
May I have done some missconfig?

What should I check in first place?

Thanks

Shai Almog

unread,
Jan 7, 2014, 2:31:54 PM1/7/14
to codenameone...@googlegroups.com, tiago...@alidata.com.pt
I'm guessing your back command is null.
Did you override allowBackTo to return false?
Reply all
Reply to author
Forward
0 new messages