Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.annotation.SuppressLint;

import android.os.AsyncTask;

public class Main {

    @SuppressLint("NewApi")
    public static <Params, Progress, Result> void executeAsyncTask(AsyncTask<Params, Progress, Result> task,
            Params... params) {
        // if (Build.VERSION.SDK_INT >= 11) {
        // task.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params);
        // } else {
        task.execute(params);
        // }
    }
}