My sound plays (5 seconds), wait for 25 seconds, then play again, and it goes like this as long my user is in my main menu.
Any ideas how to solve this?
Current code I have is like this (I know it just looping directly after the sound has played)
- Code: Select all
mp = MediaPlayer.create(getBaseContext(), R.raw.mainsound);
So how should I change my code to achieve the "every 30 seconds" thing?