Modification of thread and handler, it can compatible with Android 4.0.