Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Please help me with back button navigation

In my application i have a few roImageCanvas screens. I want to navigate from one screen to other using back button. So i have used remote back button (index 0) and statement 'return -1' inside it in my code. I am able to navigate back but its getting stuck. What can be done to fix this ?

Please suggest me.
Thanks in advance
0 Kudos
3 REPLIES 3
RokuJoel
Binge Watcher

Re: Please help me with back button navigation

You should have a return -1 statement after your

Else if Msg.IsScreenClosed()


event.

- Joel
0 Kudos

Re: Please help me with back button navigation

Thanks for the reply
I have tried using IsScreenClosed and have returned -1 .It is going back but my screen is freezing ,none of the customized events are working..........
0 Kudos
salman23
Visitor

Re: Please help me with back button navigation

"anusha.tirunahari" wrote:
Thanks for the reply
I have tried using IsScreenClosed and have returned -1 .It is going back but my screen is freezing ,none of the customized events are working..........

I have once encountered the same problem.When i navigate back to my previous screens ,the events seems stucked.The reason was , the event loop of the top screen in my display stack had not been returned or exited in event.isScreenClosed() event .

It might be the reason.Just check it out.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.