我是 android 新手,同时运行 6 个异步任务。所以为此我正在使用这个
int corePoolSize = 60;
int maximumPoolSize = 80;
int keepAliveTime = 10;
BlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<Runnable>(maximumPoolSize);
Executor threadPoolExecutor = new ThreadPoolExecutor(corePoolSize, maximumPoolSize, keepAliveTime, TimeUnit.SECONDS, workQueue);
new FetchShoppingItems(GlobalVars.fetchshoppingURl, sipId).executeOnExecutor(threadPoolExecutor);
这但是我的应用程序会自动关闭而没有任何崩溃消息对话框。请帮我解决这个问题。谢谢