Category screen?

I have an application that just uses the springboard to play the video. I"m wanting to submit it to the public channel and would like to have a “category” home screen. I was using a roposterscreen but that doesn’t work as I want. I want a launch screen that basically just list “icons” that launch a function (my spring board and mp3 pages).

Roku documents mentioned something about a category screen that displays icons but i didn’t find much about it in the developer guide. Anybody have any thoughts or know what this? Do you have any code samples?

Thanks,

The “category screen” you’ve seen mention of is probably just a roPosterScreen with its style set to “flat-category”. Check out SetListStyle() on page 36 of the Component Reference.

What would be the best way to create “icons” without using the setlist? This way i can set a link/function call for each icon?

There is no way to populate a poster screen without SetContentList(). If you want different behavior for each item, you can do so in your isListItemSelected() handler. Just set a flag in each item’s content-meta-data object and check that flag when the user selects the item…


if msg.isListItemSelected()
  if contentList[msg.GetIndex()].action = "do-thing-1"
    ' do something
  else if contentList[msg.GetIndex()].action = "do-thing-2"
    ' do something else
  end if
...
end if

I’ve actually got this exact behavior setup (except for the unique action). Works perfectly on the dev side but when i upload it to my channel and try to add the channel in the store, i get an insafficent memory. Only with these functions, when i take that code out it works great. I don’t understand why it would break in the channel store but not while in the dev environment.

Any idea?

Thanks,

Try reducing the size of the images used in your app by a significant amount. For example, load all your images into Adobe ImageReady and optimize as .jpg, .png-8 or .gif.

  • Joel

That’s not it, for some reason it seems directly related to the code.

The insufficient memory when trying to add your channel is due to the total size of all the channels added to your roku.

Try removing some other installed channels first and then try installing your channel.

–Kevin

Kevin, I did, i even deleted all of my channels and restored my roku. It only seems to happen when i add category screen code.

If you private message me your channel code I will take a look.

–Kevin