title: play sound by clicking on Imagebutton
body: <p>i try to play an audio file by clicking on an imagebutton for this i use the following code:</p>
  
  <pre><code>ImageButton button1 = (ImageButton) findViewById(R.id.imageButton1);
      final MediaPlayer mpButtonClick = MediaPlayer.create(this, R.raw.ba);
      button1.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick (View v) {
              //TODO Auto-generated method stub
              mpButtonClick.start();
          }
      });
  </code></pre>
  
  <p>but by the position </p>
  
  <pre><code>ImageButton button1 = (ImageButton) findViewById(R.id.imageButton1);
  </code></pre>
  
  <p>i get the error unreachable code hope anybody can help me thx.</p>