Look at the sample codes below
@Override
protected void onPause() {
...some code here...
super.onPause();
}
and
@Override
protected void onPause() {
super.onPause();
...some code here...
}
When I asked about differences in code, I did not mean about the flow of execution, which is abvious.
So what is the real difference between these codes? When is it advised to use your code before super()
call, and when to use your code after super()
call? I guess there are situations when this does matter.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…