android.app.SuperNotCalledException错误

来源:互联网 发布:隐形眼镜推荐 知乎 编辑:程序博客网 时间:2024/06/06 03:24
protected void onDestroy() {2             //Do Something3        super.onDestroy();没有调用父类的onDestroy(),一定要加上4     }    


今天在写程序出现以上报错,经过查询后发现是Activity里的onDestroy()方法漏写super,一定要加上

0 0
原创粉丝点击