如果我们在
Android应用程序的每个活动中重写OnDestroy()方法都可以吗?
@Override public void onDestroy() { super.onDestroy(); }
只需在onDestroy()方法中调用super.onDestroy(),它是否会清理内存资源?
解决方法
只要你调用超类,就可以覆盖onDestroy.如果你所做的只是调用超类,你为什么要这样做呢?