這可能是在一個線程或並行串口,它實際上取決於其Android操作系統的版本的應用程序正在運行。對於大多數情況下,它將在一個後臺線程上串行。
這是谷歌文件說什麼: -
Executes the task with the specified parameters. The task returns itself (this) so that the caller can keep a reference to it.
Note: this function schedules the task on a queue for a single background thread or pool of threads depending on the platform version. When first introduced, AsyncTasks were executed serially on a single background thread. Starting with DONUT, this was changed to a pool of threads allowing multiple tasks to operate in parallel. Starting HONEYCOMB, tasks are back to being executed on a single thread to avoid common application errors caused by parallel execution. If you truly want parallel execution, you can use the executeOnExecutor(Executor, Params...) version of this method with THREAD_POOL_EXECUTOR; however, see commentary there for warnings on its use.
This method must be invoked on the UI thread.
檢查此鏈接execute (Params... params)它會幫助你。
希望它有幫助,
謝謝。
[Go through this](http://stackoverflow.com/questions/6053602/what-arguments-are-passed-into-asynctaskarg1-arg2-arg3) – nobalG
它會按照您編寫代碼的順序來對待它。它只是將所有字符串壓縮成一個String []數據,然後您可以以任何您想要的方式使用它。 –
你想一個接一個地調用'AsyncTask'來獲取參數嗎? – Paritosh