
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. How do I access Androids default beep sound final ToneGenerator tg new ToneGenerator(AudioManager.STREAMNOTIFICATION, 100) tg.startTone(ToneGenerator.
ANDROID TONEGENERATOR TWO BEEP EXAMPLE HOW TO
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. I wanted to play an arbitrary tone, have an arbitrary pause/delay and then play the tone again. You may check out the related API usage on the sidebar. Sometimes the sounds overlapped, other times they played faster than they should. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.

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.
