当我创建一个新活动时,新活动是否在新线程中运行?
Log.d("testing", "before activity start");
intent = new Intent(CurrentActivity.this, SecondActivity.class); //I put "Log.d("testing","in secondActivity")" in SecondActivity.onCreate()
startActivity(intent);
Log.d("testing", "after activity start");
我认为执行的顺序将是“活动开始前”->“在 secondActivity”->“活动开始后”
但事实上,并非如此。有人知道原因吗?那么,新活动是否在新线程中运行?