samples/Support4Demos/src/main/java/com/example/android/supportv4/media/Playback.java
private void giveUpAudioFocus() {
        Log.d(TAG, "giveUpAudioFocus");
        if (mAudioFocus == AUDIO_FOCUSED) {
            if (mAudioManager.abandonAudioFocus(this) == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {
                mAudioFocus = AUDIO_NO_FOCUS_NO_DUCK;
            }
        }
    }
/**
     * Give up the audio focus.
     */
Give up the audio focus.
Give up the audio focus .
private void giveUpAudioFocus() {
        Log.d(TAG, "giveUpAudioFocus");
        if (mAudioFocus == AUDIO_FOCUSED) {
            if (mAudioManager.abandonAudioFocus(this) == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {
                mAudioFocus = AUDIO_NO_FOCUS_NO_DUCK;
            }
        }
    }
private void giveUpAudioFocus ( ) { Log . d ( TAG , "giveUpAudioFocus" ) ; if ( mAudioFocus == AUDIO_FOCUSED ) { if ( mAudioManager . abandonAudioFocus ( this ) == AudioManager . AUDIOFOCUS_REQUEST_GRANTED ) { mAudioFocus = AUDIO_NO_FOCUS_NO_DUCK ; } } }
Give up the audio focus.
Give up the audio focus .