Back to project page webimageloader.
The source code is released under:
Apache License
If you think the Android project webimageloader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.webimageloader.loader; //from w w w. j av a 2 s . c om import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import com.webimageloader.util.PriorityThreadFactory; public abstract class SimpleBackgroundLoader extends BackgroundLoader { public SimpleBackgroundLoader(String name, int priority, int threadCount) { super(createExecutor(name, priority, threadCount)); } private static ExecutorService createExecutor(String name, int priority, int threadCount) { return Executors.newFixedThreadPool(threadCount, new PriorityThreadFactory(name, priority)); } }