1

From here : http://developer.android.com/reference/android/os/AsyncTask.html

doInBackground(URL... urls)

onProgressUpdate(Integer... progress)

Are they a set of URL type named urls and a set of Integer type named progress ?

0

2 Answers 2

3

It's not Android specific, it's Java varargs. Simply speaking they are like URL[] and Integer[]

0
2

They are called Varargs.. they are kind of Arrays you can say but not exactly Arrays.. They hold multiple values of respective types(in your case URL and Integer ).. and you can access them just like Arrays using index..., like urls[0].. etc.. and while calling those methods just pass multiple arguments with comma separator..

0

Not the answer you're looking for? Browse other questions tagged or ask your own question.