How to play audio file from raw/assets folder on the native/default media player?
I know i can play an mp3 file in the media player like that: Intent intent = new Intent(); intent.setAction(android.content.Intent.ACTION_VIEW); File file = new File(YOUR_SONG_URI); intent.setDataAndType(Uri.fromFile(file), "audio/*"); startActivity(intent); Following this link I tried to get the URI like: Uri audio = Uri.parse("android.resource://com.audio.test/"+R.raw.audio1); Log.d(TAG,"uri:"+audio.toString()); and Uri audio = Uri.parse("android.resource://com.audio.test/raw/audio"); Log.d(TAG,"uri:"+audio.toString()); Which outputs the expected result: 01-24 15:28:23.190: D/MyClass(30234):