This issue might be caused by ringtone permission, if using a custom ringtone or ringtone set by other apps, must ensure your app has storage permission, otherwise, you cannot setDataUri to MediaPlayer instance.
Copyright © 2015 Powered by MWeb, Theme used GitHub CSS.