Don't do jobs your application has to do on the main thread. It will annoy the user and probably won't take the advantages from the "new" multicore CPUs. Add the jobs insted to the background queue written in pure Java!