Skip to content

Instantly share code, notes, and snippets.

@dynoChris
Created December 2, 2019 14:51
Show Gist options
  • Select an option

  • Save dynoChris/af1cc0aee93ac0a214be215097f527c7 to your computer and use it in GitHub Desktop.

Select an option

Save dynoChris/af1cc0aee93ac0a214be215097f527c7 to your computer and use it in GitHub Desktop.
How to play system sounds in Android programmatically
ToneGenerator toneGen1 = new ToneGenerator(AudioManager.STREAM_MUSIC, 100);
toneGen1.startTone(ToneGenerator.TONE_CDMA_CALL_SIGNAL_ISDN_INTERGROUP,5000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment