title: How to get resource id from String in Android
body: <p>I need get a <code>resource ID</code> from <code>string</code></p>
  
  <pre><code>String s = "R.raw.button5";
  
  final MediaPlayer mp2 = MediaPlayer.create(this,Integer.valueOf((s));
  </code></pre>