Sometimes it returns that unsupported mimetype and sometimes it returns invalid token
try to set ringtone in my app. But I am unable to do so by all mean I tried. I checked others code but I am not make it possible for me from others code. even all of these links provided below I didnt find my proper solution How to set Ringtone in android? Setting Ringtone in Android How to set Android ringtone from audio file stored in external storage
If you're facing issues setting a ringtone in your Android app and getting errors like "unsupported mimetype" or "invalid token," make sure to:
This should help you set a custom ringtone successfully.