Code example for Ringtone

Methods: setStreamType

0
        } 
    	 
    	mRingtone = RingtoneManager.getRingtone(mContext, defaultUri);
    	 
    	 if (mRingtone != null) {
             mRingtone.setStreamType(mStreamType);
         } 
    } 
     
    public void stop() { 
        stopSample(); 
//        mContext.getContentResolver().unregisterContentObserver(mVolumeObserver); 
        mSeekBar.setOnSeekBarChangeListener(null);
    } 
     
    public void revertVolume() { 
        mAudioManager.setStreamVolume(mStreamType, mOriginalStreamVolume, 0);
    } 
// 
	@Override 
	public void run() {