Reputation: 7264
Is it a good solution or not?
How to implement?
When should I shutdown properly? I shutdown it onDestroy() in the Activity, then relaunch my app as soon as possible. It causes a java.util.concurrent.RejectedExecutionException
, why? Does anyone know its lifecycle?
Any idea? Thanks.
Upvotes: 0
Views: 1680
Reputation: 7264
I just figure out the AsyncYask
already implemented the Java's concurrency executor with core_pool_size 5 and max_pool_size 128. That's great!
Upvotes: 2
Reputation: 1576
MyApplication app = (MyApplication) context.getApplicationContext();
Upvotes: 0