To play single beep
val generator = ToneGenerator(AudioManager.STREAM_NOTIFICATION, 100)
generator.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200)
Playing Android ToneGenerator's tones
To play single beep
val generator = ToneGenerator(AudioManager.STREAM_NOTIFICATION, 100)
generator.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200)
Playing Android ToneGenerator's tones
MIT License