How To .release() The Mediaplayer Instantiated By Ringtonemanager?
I'm getting a default Ringtone in my Activity: remindRingtoneView = (TextView) findViewById(R.id.remind_ringtone); remindRingtoneView.setText(RingtoneManager.getRingtone(
Solution 1:
In your program, RingtoneManager.getRingtone
will return an object to Ringtone
class. If we consider this object to be mRingTone
, then invoking mRingTone.stop()
will release the MediaPlayer
object.
Post a Comment for "How To .release() The Mediaplayer Instantiated By Ringtonemanager?"