2014년 11월 30일 일요일

Spinner help

So I have a spinner. I'd like to use that to select a music file to play, but I'm having trouble figuring out the process here. 

Basically what I'm imagining is:
  • Spinner selects "One"
  • Player source becomes "One"
  • Hit play and it plays "One"
So if I do it that way I need some sort of variable that least the system know that "One" is the file "one.mp3" Which I'll have to figure out.

You think that's the best way to do it? Or is there a better way to get an app that is able to play different files after a selection?



you could have 2 lists, list1 to be displayed in the spinner and list2 with the corresponding file names


댓글 없음:

댓글 쓰기