android - Does AsyncTask run the doInBackground accordingly to each of its parameter order or randomly? -
for example there asynctask
of string... parameters
, if make call :
asynctask<string, void, void> sometask = new mytask(myactivity.this); sometask.execute(string1 , string2 , string3);
what internal order of execution of doinbackground
inside task : treat string1 first string2 , on sequencely provided when called , or treat parameters
randomly ?
string...
"vararg", in example converts individual parameters string[]
, entries array in order got passed method.
so using example, (string[]) param[0]
== string1
, param[1]
== string2
, param[2]
== string3
, forth. ordering of param
entries, how each entry in param
used, depends entirely on code.