Java tutorial
//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; } }