android.app.SuperNotCalledException: Activity did not call through to super.onStop()

后端 未结 2 609
挽巷
挽巷 2021-01-03 23:48

Im using a few sensors - MediaRecorder and MediaPlayer, NotificationManager, a WakeLock, and LocationListener...

Here is my onResume() and onPause() functions:

2条回答
  •  抹茶落季
    2021-01-03 23:59

    You need to make sure that you have super.onStop and super.onDestroy in your overridden methods. This could be a good candidate for the problem you have:

    @Override
    protected void onStop() {
        Log.w(TAG, "App stopped");
    
        super.onStop();
    }
    
    @Override
    protected void onDestroy() {
        Log.w(TAG, "App destroyed");
    
        super.onDestroy();
    }
    

提交回复
热议问题