HI,
Probably the easiest way is to copy a Sample and modify it
Touch the rocket icon in the top-right, scroll down to Audio Player, touch it, then touch the left-bottom icon, then paste into a new app.
Change Spinner to List
spin = app.AddList( lay,"[No tracks found]" );
player.SetFile( p + "/" + spin.GetItemByIndex(0).title );
After the block of code for the Stop Button add code for a Next Button
//Create 'Next' button.
btnNext = app.CreateButton( "Next", 0.4, 0.1 )
btnNext.SetOnTouch( btnNext_OnTouch )
lay.AddChild( btnNext )
index = 0
After the btnStop functon add
//Handle 'Next' button.
function btnNext_OnTouch() {
index += 1
if (index >= spin.GetLength() ) index = 0;
alert(p + "/" + spin.GetItemByIndex(index).title)
player.SetFile( p + "/" + spin.GetItemByIndex(index).title );
}
If you have got a lot of music (in the music folder) the screen will be overfull,
so you could hide the list, or use a scroller.
Regards, ah