I was trying to load an image from the sdcard. From the same directory I managed to open sound files and play them, but for some reason it didn’t work for the image. After trying everything it turned out that

MediaPlayer.create(this, Uri.parse("file:///sdcard/app/a.mp3"));

works, but


doesn’t work. Instead of this path, one should use:


This finally works! BTW it also works for the MediaPlayer.

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>