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: 
pinehead
Level 7

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,
0 Kudos
9 REPLIES 9\
RokuChris
Roku Employee
Roku Employee

Re: Category screen?

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.
0 Kudos
pinehead
Level 7

Re: Category screen?

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?
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: Category screen?

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
0 Kudos
pinehead
Level 7

Re: Category screen?

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,
0 Kudos
jbrave
Level 8

Re: Category screen?

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
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
pinehead
Level 7

Re: Category screen?

That's not it, for some reason it seems directly related to the code.
0 Kudos
RokuKevin
Level 9

Re: Category screen?

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
0 Kudos
pinehead
Level 7

Re: Category screen?

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.
0 Kudos
RokuKevin
Level 9

Re: Category screen?

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

--Kevin
0 Kudos