Code example for Ringtone

Methods: setStreamType

0
				} 
			} 
			mRingtone = RingtoneManager.getRingtone(mContext, defaultUri);
 
			if (mRingtone != null) {
				mRingtone.setStreamType(mStreamType);
			} 
		} 
 
		public boolean isSamplePlaying() { 
			return mRingtone != null && mRingtone.isPlaying();
		} 
 
		public void muteVolume() { 
			if (mVolumeBeforeMute != -1) {
				mSeekBar.setProgress(mVolumeBeforeMute);
				startSample(); 
				postSetVolume(mVolumeBeforeMute);
				mVolumeBeforeMute = -1;
			} else { 
				mVolumeBeforeMute = mSeekBar.getProgress();