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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Roku Guru

UI does not show until screensaver is closed

I have a little app that just shows a menu bar and some items, but I need to wait for the screensaver to to turn on and then close it to see the app.
The splash screen however gets show. I am also calling show() on the screen:

Any idea?

function Main() as void
print "Main() called"
end function

sub prepareAndshowChannel()
print "prepareAndshowChannel() called"
m.MainScreen = CreateObject("roSGScreen")
MainScreen = m.MainScreen
m.port = CreateObject("roMessagePort")
m.ApplicationScreen = m.MainScreen.CreateScene("ApplicationScreen")
print "MainScreen and ApplicationScreen prepared"

msg = wait(0, m.port)
msgType = type(msg)
if msgType = "roSGScreenEvent"
if msg.isScreenClosed() then return
end if
end while

end sub
0 Kudos
Roku Guru

Re: UI does not show until screensaver is closed [SOLVED]

I had an error in my code which I did not see in the console.
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.