Code example for AsyncTask

Methods: execute

0
public class DownloadProblemsDialog { 
 
    public static AsyncTask<TsumegoSource[], String, Integer> getAndRunTask(GobandroidFragmentActivity activity, Refreshable refreshable) { 
        EasyTracker.getTracker().trackEvent("ui_action", "tsumego", "refresh", null); 
        AsyncTask<TsumegoSource[], String, Integer> res = new DownloadProblemsDialogTask(activity, refreshable); 
        res.execute(TsumegoDownloadHelper.getDefaultList(activity.getApp())); 
        return res; 
    } 
}