everyone. I have read on the android site the description of the excute() of AsyncTask:
public final AsyncTask<Params, Progress, Result> execute (Params... params)
But within my project, I have read the code like this:
private static final int JSON = 0;
private static final int NAME = 1;
@Override
protected String doInBackground(String... strData) {
FileOutputTask task = new FileOutputTask(context);
task.execute(strData[JSON], strData[NAME]);
}
Somebody can tell me why there are 2 input parameters for the execute() method?
Since according the specification, there should be only one input parameter.
Thanks in advance!