title: Playing A Sound Clip Without MediaPlayer.Create from raw folder (Rather than stream or sdcard)
body: <p>(Android)
  I'm making an app with a few buttons, each of which has a short sound clip associated with them. They have their own OnClick statements. The code below plays a file from the SD Card as I'd expect...</p>
  
  <pre><code>public void Hello (View view) {
      ///ButtonClick Main Body.
      //MediaPlayer mediaPlayer = MediaPlayer.create(getBaseContext(), R.raw.hello);
      //mediaPlayer.start();
  
  SoundPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
  
          @Override
          public void onPrepared(MediaPlayer mp)
          //TODO Auto-generated Method stub
          {
              SoundPlayer.start();
          }
      });
  
      String file = "/sdcard/Music/Hello.mp3";
  
      SoundPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
      try {
          SoundPlayer.setDataSource(file);
      } catch (IllegalArgumentException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } catch (IllegalStateException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      try {
          SoundPlayer.prepareAsync();
      } catch (IllegalStateException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
  
  }
  </code></pre>
  
  <p>...However, how can I set the source to R.raw.hello (a Sound file) without causing an error? The current error message is "The method SetDataSource(String) in the type Media Player is not applicable for the arguements (int)". In case you haven't presumed, I'm using Eclipse.</p>
  
  <p>Thanks.</p>