Q:

Want to play random sounds when button pressed android

I am using the following code for playing a random sound when button is pressed, but it shows an error which i am unable to resolve. Could anybody please help:
 Button myButton = (Button)findViewById(R.id.button1);

        final List<Integer> soundList = new ArrayList<Integer>();
        soundList.add(R.raw.sound);
        soundList.add(R.raw.sound1);
        soundList.add(R.raw.sound2);
        soundList.add(R.raw.sound3);

       myButton.setOnClickListener(new OnClickListener() {

        @Override
        public void onClick(View arg0) {
            // TODO Auto-generated method stub
             playRandomSound();
        }

        private void playRandomSound() {
            // TODO Auto-generated method stub
            int randomInt = (new Random().nextInt(soundList.size()));
            int sound = soundList.get(randomInt);
            MediaPlayer mp = MediaPlayer.create(this, sound);
            mp.start();
        }
    });

ERROR: The method create(Context, int) in the type MediaPlayer is not applicable for the arguments (new View.OnClickListener(){}, int)

A:

The method create(Context, int) in the type MediaPlayer is not
  applicable for the arguments (new View.OnClickListener(){}, int)

Pass Activity context as first parameter to createmethod as:
MediaPlayer mp = MediaPlayer.create(myButton.getContext(), sound);

