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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -