title: How to address an image which is in system resource in android
body: <p>I am writing a media player in which I am using Image buttons and Images are from <strong>system resource</strong>. Now in java file, how should it be addressed?
  here is the code:</p>
  
  <pre><code>case R.id.ib2:
      if (isPlaying) {
           pause();
           //the red line is under R.drawable.ic_media_pause
           playPause.setImageResource(R.drawable.ic_media_pause);
  </code></pre>