I\'m trying to save a sound as a ringtone in Android using this code. It works like a charm but will fail if I try to save a ringtone that has already been inserted.
I was having the same issue....it's because you don't have this permission in your manifest
Also, if you're using that tutorial, make sure you have this in your manifest as well...
I spent a good half an hour or so trying to figure out why the code wasn't working. I actually removed the try/catch just to see what type of error it would throw in the logcat, and it told me I was missing those permissions.