Uri.parse() - MediaPath is null
<p>I want to parse a uri string like this:</p>

<pre><code>String fileName = playList.get(playListIndex);
// fileName = "video1"
String uri = String.format("android.resource://%s/R.raw.%s",getPackageName(), fileName);
// uri = "android.resource://com.example.fooApp/R.raw.video1"
mediaPath = Uri.parse(uri);

02-19 08:41:54.189: I/MediaPlayer(18730): path is null
</code></pre>

<p>It works when its like this, but I want that last bit "video2" to be dynamic.</p>

<pre><code> mediaPath = Uri.parse("android.resource://" + getPackageName() + "/"+ R.raw.video2); this workes
</code></pre>
