Open onecoders opened 10 years ago
@TargetApi(Build.VERSION_CODES.HONEYCOMB) void startMyTask(AsyncTask asyncTask) { if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){ asyncTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, params); }else{ asyncTask.execute(params); } }
int corePoolSize = 60;
int maximumPoolSize = 80;
int keepAliveTime = 10;
BlockingQueue
http://rincliu.com/blog/2013/07/26/asynctaskde-zu-sai-wen-ti