[Solved] Fatal error: supernotcalledexception [closed]


You should call super.onDestroy() last in your own onDestroy() method:

public void onDestroy(){
    player.stop();
    player.release();
    Log.d(TAG, "Player Crushed");
    super.onDestroy();
}

My hypothesis is that the MediaPlayer requires the Activity‘s context, so the Activity must be destroyed after the calls to stop() and release().

7

solved Fatal error: supernotcalledexception [closed]