![]() What I've tried so farįirst of all, I tried to call the startTone() method twice, but soon I found out that the sounds played simultaneously. OBS: I've seen some solutions for this problem using the MediaPlayer or the Ringtone class, but this question is on how to achieve this using ToneGenerator only, without using the TONE_PROP_BEEP2 or TONE_PROP_ACK tones. Creating a ThreadPool for use in your app is straight forward, start by creating a Singleton which will represent your ThreadPool. ![]() I wanted to play an arbitrary tone, have an arbitrary pause/delay and then play the tone again. ![]() Sometimes the sounds overlapped, other times they played faster than they should. Problem is, I didn't manage to get it quite right. I've been trying to achieve a double beep sound on an app I'm developing once a button is pressed. Wakes up a single thread that is waiting on this objects monitor.
0 Comments
Leave a Reply. |