Reputation: 116
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
Reputation: 116
I solved it by using the SoundPool class instead of the MediaPlayer class.
Upvotes: 1