Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

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
Highlighted
Roku Employee
Roku Employee

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
Highlighted

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
Highlighted
Level 7

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