K
K
Kirill2018-07-05 14:42:30
Java
Kirill, 2018-07-05 14:42:30

Can you explain or link to material about the (super.) construct in lifecycle methods "?

I'm not interested in the activity lifecycle methods themselves, but in super. I want a little more detail on this.

@Override
    public void onStart() {
        super.onStart();
        Log.d(TAG, "onStart(Bundle) called");
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.d(TAG, "onResume(Bundle) called");
    }

    @Override
    public void onPause() {
        super.onPause();
        Log.d(TAG, "onPause(Bundle) called");
    }

    @Override
    public void onStop() {
        super.onStop();
        Log.d(TAG, "onStop(Bundle) called");
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.d(TAG, "onDestroy(Bundle) called");
    }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-07-05
@PainMain

It's just a call to the methods of the super class. What other details could there be?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question