Weird URI behavior java/setDataSource/MediaPlayer
<p>I am using a URI that i pass to a MediaPlayer on android like this:</p>

<pre><code>mediaPlayer.setDataSource(context, Uri.parse(&lt;uri&gt;));
</code></pre>

<p>When I get it using Intent.createChooser, it plays once then trying to make it play it again result in java.io.IOException: setDataSource failed.: status=0x80000000.</p>

<p>When i pass the URI as a string directly, it results in java.io.IOException: setDataSource failed.: status=0x80000000, despite the URI outputed by the selector being always the same.</p>

<p>The uri look like this: "content://com.android.providers.media.documents/document/audio%3A21739".</p>

<p>Can someone please enlighten on why does this happen?</p>