My app allows you to specify a different ringtone for different incoming events. EG: incoming call, incoming sms etc etc.
What I am trying to accomplish is when I receive for example an incoming call, I check my apps database if a specific option is selected and if there is a ringtone option set play that ringtone.
However the problem I am having is I am unable to override / stop the default phone ringtone from playing.
I have tried several different ways, but from the docs most of those methods only stop the current instance and are not global methods.
I can't set the ringtone in the default phones ringtone settings as it needs to be dynamic based on the incoming call.
If anyone knows of a trick or a way to accomplish this that would be great. I hope that makes sense, thanks in advanced.