Hello, can anyone show me the proper way to resolve my problem?, I'm trying to to play a sound repeatedly but I need it to play with a random delay. When I grab a random number and start looping my sound, sure it plays some random time later and continues to do so. But I want to use a new random number for the delay between each loop.
Pseudo code: 1) Grab random number. (java.util.random). 2) Change that random number to represent seconds. 3) Pause or wait for that random amount of seconds. 4) Play sound from soundpool. (just mimic this as my soundpool is working fine) 5) Grab new random number and repeat steps 3 through 5 and repeat this process until the user cancels with a button. 6) Enable the user to cancel this loop at any time. I would really appreciate a little help if someone can find the time.... Thank you in advance, [email protected] -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

