2

I am trying to play a short sound when clicking a button, but logcat says "QCMediaPlayer mediaplayer NOT present"

I already read this but it didnt really help me, so i decided to ask again.

mp.create(getBaseContext(), R.raw.sound);
mp.start();
Community
  • 1
  • 1
purpule
  • 116
  • 1
  • 10

1 Answers1

1

I solved it by using the SoundPool class instead of the MediaPlayer class.

purpule
  • 116
  • 1
  • 10