Skip to content

Instantly share code, notes, and snippets.

@RedRussianBear
Created November 26, 2018 17:01
Show Gist options
  • Save RedRussianBear/6d00a6fb0502970b424ef5d812c36b1e to your computer and use it in GitHub Desktop.
Save RedRussianBear/6d00a6fb0502970b424ef5d812c36b1e to your computer and use it in GitHub Desktop.
@Override
protected void onStop() {
super.onStop();
// Release MediaPlayer
if (mediaPlayer != null) {
mediaPlayer.release();
mediaPlayer = null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment