I'm getting media that's on the phone as mentioned here (using ContentResolver
) but the path returned is of the form /storage/emulated/0/...
and trying to use it for mediaPlayer.SetDataSource()
yields a Java.IO.FileNotFoundException
. I realize that this path is probably not a real path, but how do I get the real path from this path?
When I have an Asset in the project folder, the MediaPlayer
works fine. But I can't get it to work with other files. I already set the permission for READ_EXTERNAL_STORAGE
.
Though I rather have an answer in C#, An answer in Java would probably be enough.
EDIT
I've seen some answers dealing with similar things but they all assume I have a Uri
. While the method above returns a string. And I haven't been successful in trying to convert it to a Uri so I can't even test those solutions.