purpule
purpule

Reputation: 116

Android - QCMediaPlayer mediaplayer not present

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();

Upvotes: 2

Views: 4757

Answers (1)

purpule
purpule

Reputation: 116

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

Upvotes: 1

Related Questions