how to add soundeffects when clicking a button
<p>I'm having a bit of a trouble,, here's the gen. idea,, I have created an app a simple game-like application.. however the problem is when I try to click the button in the title screen it doesn't play the click sound.. can anyone please help me.. here's the code for my sound</p>

<pre><code>    public class Effects extends Activity implements MediaPlayer.OnCompletionListener {

        Button mPlay;
        MediaPlayer mPlayer;

        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);

            mPlay = (Button)findViewById(R.id.btnStart);
            mPlay.setOnClickListener(playListener);

            setContentView(R.layout.activity_main);
        }

        @Override
        public void onDestroy() {
            super.onDestroy();
            if(mPlayer != null) {
                mPlayer.release();
            }
        }

        private View.OnClickListener playListener = new View.OnClickListener() {

            @Override
            public void onClick(View v) {
                if(mPlayer == null) {
                    try {
                        mPlayer = MediaPlayer.create(Effects.this, R.raw.button11);
                        mPlayer.start();
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                } else {
                    mPlayer.stop();
                    mPlayer.release();
                    mPlayer = null;
                }
            }
        };
        @Override
        public void onCompletion(MediaPlayer arg0) {
            // TODO Auto-generated method stub

        }
    }    
</code></pre>

<p>and here's my code for the main java that I want the sound to be played when I clicked this button</p>

<pre><code>public class Main extends Activity implements OnClickListener
{
Button about;
Button Quit;
Button start;
protected void onCreate(Bundle onSavedInstanceState) {
    super.onCreate(onSavedInstanceState);
    setContentView(R.layout.activity_main);
    about = (Button)findViewById(R.id.btnAbout);
    about.setOnClickListener(this);
    Quit = (Button)findViewById(R.id.btnQuit);
    Quit.setOnClickListener(this);
    start = (Button)findViewById(R.id.btnStart);
    start.setOnClickListener(this);

}
public void onClick(View argo)
{
    if(argo.getId()==R.id.btnAbout)
    {
        Intent i = new Intent(this,About.class);
        this.startActivity(i);
    }
    if(argo.getId()==R.id.btnQuit)
    {
        Intent intent = new Intent(Intent.ACTION_MAIN);
        intent.addCategory(Intent.CATEGORY_HOME);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    }
    if(argo.getId()==R.id.btnStart)
    {
        Intent start = new Intent(this,Howto.class);
        this.startActivity(start);
        Intent svc=new Intent(this,Effects.class);
        startService(svc);
    }
    }
}
</code></pre>
