When you are running some heavy computation, sometimes the Android UI will hung until the computation is done, it is because main UI and computation are sharing the same thread.

continue reading.....