它产生一个新的进程和一个主执行线程。
It creates a new process and its primary thread. The new process executes the specified executable file.
这个方法总是在主ui线程上被执行,因此对于修改UI这是一个很好的选择。
This method will always be executed on the main UI thread, so it is ideal for modifying the UI.
为了避免冒险,您必须在不同的线程上执行任务,或者至少不在主ui线程上执行。
To avoid tempting fate, you must perform tasks like these on a different thread, or at least not on the main UI thread.
应用推荐