When should super.onResume();
be called, on the first line of onResume()
or on the last line?
protected void onResume() {
Log.i
Android’s source code can tell us everything. If you check the Activity super class you can find the following lines:
protected void onResume() {
if (DEBUG_LIFECYCLE) Slog.v(TAG, "onResume " + this);
getApplication().dispatchActivityResumed(this);
mCalled = true;
}
On this basis, no matter before or after it is called.