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

SetFocusedListItem dynamic

I want to use SetFocusedListItem to set the focus on a specific item, but I want to send the info about what category should be focused through xml feed.
Something like this:
<category focus='1' title="Category Name" description="Description" sd_img="http://example.com/_thumbs/01rokuSD.jpg" hd_img="http://example.com/_thumbs/01rokuHD.jpg" feed="http://www.example.com/api/roku/list.php?action=videos&amp;channel_id=1" ></category>


So I want to set the focus to the category with focus set to 1 (or true). I think this can be done integrating some code in parsing feed to get the number of the channel that should be focused, but I don't know exactly how. Any suggestions?!

(I use Video Player Example Application)
0 Kudos