Finish old activity and start a new one or vice versa

后端 未结 7 2153
轮回少年
轮回少年 2020-12-02 15:16

I know, that I get the same result with both code snippets

finish();
startActivity(newActivity);

and

startActivity(newActiv         


        
7条回答
  •  借酒劲吻你
    2020-12-02 15:41

    When you do startActivity(), all that does is post your intent in a queue of events. The actual starting of the activity happens asynchronously in the near future. So I don't see a big difference between the two.

提交回复
热议问题