Skip to content

Instantly share code, notes, and snippets.

@markojerkic
Created April 17, 2017 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markojerkic/177abc4078fb426d53d2affbafb47f93 to your computer and use it in GitHub Desktop.
Save markojerkic/177abc4078fb426d53d2affbafb47f93 to your computer and use it in GitHub Desktop.
Abandon audio focus
AudioManager audioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);
AudioManager.OnAudioFocusChangeListener afChangeListener;
audioManager.abandonAudioFocus(afChangeListener);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment