Look at the sample codes below
@Override
protected void onPause() {
...some code here...
super.onPause();
}
and
@O
Had to chip in with this link to a thread with an identical subject:
super.onResume() at beginning or end of method? Does it matter?
Note the quote from Dianne Hackborn
Yeah this is a good pattern. In most cases it probably doesn't matter, but it's a general rule: during any kind of initialization, let the super class do their work first; during any kind of finalization, you do your work first.