My Android app has to deal with arriving messages which frequently come in bunches (especially during periods of flaky connectivity). I handle these incoming messages in Asy
This exception also occur if your Executor call shutdown method and after that you give new Task (Runnable) for execution. Like
mThreadPoolExecutor.shutdown(); ... ... ... mThreadPoolExecutor.execute(new Runnable(){...});