title: Convert an int-value to a resource uri
body: <p>i have implemented an android-project which plays a random song. So i have an int-array like this:</p>
  
  <pre><code>int [] playlist_stadt    = {R.raw.black_a, R.raw.black_b, R.raw.black_c};
  </code></pre>
  
  <p>for the random play i wrote:</p>
  
  <pre><code>Random r = new Random();
  int i = playlist_stadt[r.nextInt(playlist_stadt.length)];
  PlayMusic(i);
  </code></pre>
  
  <p>what i dont understand is following:</p>
  
  <pre><code>textView.setText(i);
  </code></pre>
  
  <p>textview shows: <code>res/raw/black_c.mp3</code></p>
  
  <pre><code>Log.e("Output: ", "" + i);
  String uriPath = "android.resource://" + getPackageName() + i;
  </code></pre>
  
  <p>in the log is i an number and not the same string how in the textview:</p>
  
  <pre><code>Output: 2130968577
  203-06 13:09:23.680: E/Output:(31456): android.resource://com.example.testproject2130968577
  </code></pre>
  
  <p>can s.o. explain me this and how to convert the int-value, that i use it as an resource uri path?
  thanks in advance and sry for my english</p>