Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/**
 * Copyright 2015 Viettel Telecom. All rights reserved.
 * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

import java.util.concurrent.ThreadPoolExecutor;
import android.os.AsyncTask;

public class Main {
    public static ThreadPoolExecutor getThreadPoolExecutor() throws Throwable {
        return AsyncTask.THREAD_POOL_EXECUTOR instanceof ThreadPoolExecutor
                ? ((ThreadPoolExecutor) AsyncTask.THREAD_POOL_EXECUTOR)
                : null;
    }
}