I see examples of both, so which is the best way to override onDestroy()
in an Activity...
@Override
protected void onDestroy() {
super.onDestroy();
/*
* Clean up and stop listeners etc. AFTER calling super.
*/
myLeakyObject = null;
}
...or...
@Override
protected void onDestroy() {
/*
* Clean up and stop listeners etc. BEFORE calling super.
*/
myLeakyObject = null;
super.onDestroy();
}
...or doesn't it matter?