Tag:android
Article From:https://segmentfault.com/q/1010000012147795
Question:

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.

Similar Posts:

Leave a Reply

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