Ive had an issue with my splash screen code not functioning since the 4.8 update. It works on Roku 1s but not 2s. On Roku 2s the screen flashes and then closes out of the application. This used to work fine. Thanks in advance.
Sub RunUserInterface()
deviceInfo = CreateObject( "roDeviceInfo" )
displaySize = deviceInfo.GetDisplaySize()
if displaySize.w = 1280 then
background = {
Color: "#FFFFFF"
}
loadingImage = {
Url: "pkg:/images/indie_hd.png"
TargetRect: {
w: 1280, h: 720
}
}
canvas = CreateObject( "roImageCanvas" )
canvas.SetLayer( 0, [ background, loadingImage ] )
canvas.Show()
Sleep(6500)
else if displaySize.w = 720 then
background = {
Color: "#FFFFFF"
}
loadingImage = {
Url: "pkg:/images/indie_sd.png"
TargetRect: {
w: 720, h: 480
}
}
canvas = CreateObject( "roImageCanvas" )
canvas.SetLayer( 0, [ background, loadingImage ] )
canvas.Show()
Sleep(6500)
end if
'display a fake screen while the real one initializes. this screen
'has to live for the duration of the whole app to prevent flashing
'back to the roku home screen.
screenFacade = CreateObject("roPosterScreen")
screenFacade.show()
Main()
screenFacade.showMessage("")
End Sub
