Is it okay if we override OnDestroy() method in every activity of Android Application?
Is it okay if we override OnDestroy()
method in every activity of Android Application?
@Override
public void onDestroy开发者_StackOverflow社区() {
super.onDestroy();
}
Just by calling super.onDestroy()
in onDestroy()
Method, will it cleanup the memory resources?
It's fine to override onDestroy, so long as you do call up to the superclass. If all you're doing is calling up to the superclass, though, why would you do it?
精彩评论