Article From:

As shown, I jumped to AnotherActivity.class after clicking the Hello text in A (MainActivity), but the breakpoint found that the execution sequence was:

  1. Click textView
  2. MainActivityOnCreate ();
  3. AnotherActivityOnCreate ();
  4. MainActivityOnResume ();

Why is this? The launchMode of the two Activity is standard.

Answer 0:

Sorry, I made a mistake, because my AnotherActivity inherited MainActivity.

Leave a Reply

Your email address will not be published. Required fields are marked *