Many thanks for your detail explanation. Sleep is used to wait for result of onPause and onResume. Maybe it has an effect on the value of title. I will try to use timer on "onPause" and "onResume".