I yet did not master the skill of concurrency better say I failed on first attempt and since then did not tried, therefore I'm asking for help. Currently I working on JME application where I need to load mp3 files into Player. I'm able to do it with one file, however I'm failing to start playing next one after previous finished. I tried to use Threads but the run() method never get executed.
Basically somewhere in my application I will call method optionSelected(String). The method will start first thread and is supposed to wait till thread ends to start next thread with upload of next mp3 file and play it.
public void optionSelected(String str)
{
t = new Thread("SEL");
t.start();
soundURL ="/sesimulator/res/"+str+".mp3";
t = new Thread("soundURL");
t.start();
}
For unknown reason to me the run() method never get executed and application continue with other business.