I have this asyncTask:
public class CreateZipFile extends AsyncTask<ArrayList<String>, Integer, File> {
Context context;
public CreateZipFile(Context context){
this.context = context;
}
protected File doInBackground(ArrayList<String>... files) {
for(String file : files){
//DO SMTH
}
return null;
}
public void onProgressUpdate(Integer... progress) {
}
public void onPostExecute() {
}
}
however in my foreach loop I get error saying required ArrayList found String. Is it possible that asynctask converts my arraylist to String?