BiiG wrote: > I'm real new to Java, but not to programming. By blocking do you mean > I'm stopping the main routine from executing?
If that sleep() call is on the main application thread, then, yes, you're stopping it from executing. That at best will freeze your UI and at worst will cause the Android Grim Reaper (a skeleton carrying a scythe and dressed in a lime green robe) will say your activity is not responding and offer a "Force Close" button. > If I use the time > difference by currentTimeMillis and give it something to do, is this > still blocking? Yes. You want to return after the first playSound() call and use postDelayed() or something to arrange for the second playSound() call after a period of time, as Mike suggested. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy _Android Programming Tutorials_ Version 2.0 Available! -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

