Android 为什么执行不';DialogFragment实例化时是否停止?

Android 为什么执行不';DialogFragment实例化时是否停止?,android,Android,为什么显示对话框片段时执行不停止 public void someMethod() { methodeOne(); new FeedbackAlertDialog().show(getFragmentManager(), "tag"); // DialogFragment opened methodeTwo(); // Looking in logs this is executed when DialogFragment is shown } 通常,当其他部分尚未完成

为什么显示
对话框片段
时执行不停止

public void someMethod() {
    methodeOne();
    new FeedbackAlertDialog().show(getFragmentManager(), "tag"); // DialogFragment opened
    methodeTwo(); // Looking in logs this is executed when DialogFragment is shown
}
通常,当其他部分尚未完成时,执行就会停止。你能解释一下吗

为什么显示DialogFragment时执行不停止

public void someMethod() {
    methodeOne();
    new FeedbackAlertDialog().show(getFragmentManager(), "tag"); // DialogFragment opened
    methodeTwo(); // Looking in logs this is executed when DialogFragment is shown
}

show()
是一个异步调用。调用
methodtwo()
时,对话框甚至不在屏幕上。

如何检查方法是异步的还是同步的?@silk:影响UI的几乎所有内容都是异步的。谢谢。。。这就是为什么我要读你的书,一切都很清楚:)@silk:我将在对话一章中添加更多的材料,强调它们是异步的。我知道有些GUI工具包使用阻塞对话框,但大多数都不使用,Android尽可能避免阻塞UI调用。