Java tutorial
//package com.java2s; //License from project: Open Source License import android.os.AsyncTask; public class Main { @SafeVarargs public static <Params, Progress, Result> void StartAsyncTask(AsyncTask<Params, Progress, Result> asyncTask, Params... params) { asyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params); } }