Is it okay if we override OnDestroy()
method in every activity of Android Application?
@Override
public void onDestroy() {
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?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With