Code example for AudioManager

Methods: setStreamVolume

0
 
            if (mMediaPlayer != null) {
                mMediaPlayer.stop();
                mMediaPlayer.release();
                mMediaPlayer = null;
                mAudioManager.setStreamVolume(AudioManager.STREAM_ALARM,
                        mAlarmVolumeSetting, 0);
            } 
 
            mPlaying = false;
        } 
    } 
 
    final OnSeekCompleteListener stopSelf = new OnSeekCompleteListener() {
        public void onSeekComplete(MediaPlayer mp) { 
            stopSelf(); 
        } 
    }; 
}