I\'m writing an app that sometime fires reminders that are supposed to play ringtones. I can start the ringtone OK, but can\'t stop it. I have a dismiss method in my fragment th
Create RingtoneManager object using Application Context like this
RingtoneManager ringMan = new RingtoneManager(getApplicationContext());
ringMan.stopPreviousRingtone();
and RingTone object also create like this only.
mRingTome = RingtoneManager.getRingtone(getApplicationContext(), notification);
mRingTome.play();
It is working for me.