调用AsyncTask的excute方法不能立即执行程序的原因分析及改善方案

LinkedBlockingQueue<Runnable> blockingQueue = new LinkedBlockingQueue<Runnable>();
ExecutorService exec = new ThreadPoolExecutor(1, 1, 0L, TimeUnit.MILLISECONDS, blockingQueue);
new MyFileToBitmap(viewHold.ivPhone, archice.getFilePath()).executeOnExecutor(exec,URl);

 

posted @ 2016-08-31 13:24  呼啦啦,,啦啦呼呼  阅读(397)  评论(0)    收藏  举报