I know there are several questions about this, sadly none of them helps me. (or I am too stupid to apply the answer to my problem).
On my virtual phone I created the folder "Musik" inside this folder a "King.mp3" is located.
I am not able to play this mp3 via media player.
This is the crucial part of my code:
MediaPlayer mp;
mp = MediaPlayer.create(this, Uri.parse(Environment.getExternalStorageDirectory().getPath()+
"/Musik/King.mp3"));
mp.start();
I already tried it with:
mp.setDataSource(Environment.getExternalStorageDirectory().getPath()+
"/Musik/King.mp3");
mp.prepare();
mp.start();
but it is still not working.
https://i.stack.imgur.com/nINGk.png
(I know there is a lot of useless stuff in the code, I just wanted to show the mp3 path (on the right).
I tried pasting the mp3 directly into the "sdcard".
i dont even care if the path would be hard coded like "/storage/sdcard/Musik" (already tried, its not working. not even with mnt/sdcard/Musik