Question

I am working on an application where I need to stat the audio file when the timercountdown gets over. But, how do I get to know that the timer countdown has been over So, that I can start playing the audio file?

Please can anybody tell me!

Thanks, david,

Was it helpful?

Solution

use java Timer class.

delay - delay in milliseconds before task is to be executed.

        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                // start your audio
            }
        }, delay);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top