Error : android.app.SuperNotCalledException

后端 未结 5 1625
野的像风
野的像风 2021-02-08 05:10

i am new user of android and i had make one android database connection and create table application but at run time it will generate an error.
an error is hear :

5条回答
  •  暖寄归人
    2021-02-08 05:59

    public void onDestroy() {   
        super.onDestroy();
        eventsData.close();     
    }
    

    This is to be called because, Activity class in android does some cleanup by itself. When base class functions are overridden by the derived class that is the activity as done in case of onDestroy(), the base class function needs to be called explicitly to perform the expected operation.

提交回复
热议问题