In a simple application, when you click on the button with the correct answer to the question, the melody is played (using the start () method of the MediaPlayer class). Several questions pass like this and the sound stops playing. I close the application, open it again - everything is working normally (for the time being).

What can be wrong?

  • Add code. You may have a mistake in managing the state of the media player, or just some kind of mistake elsewhere, for example, with working in several streams. - Agrgg
  • Well, the adb logcat exhaust will also be useful - bukkojot

0