了解 Activity 生命周期
https://developer.android.com/guide/components/activities/activity-lifecycle?hl=zh-cn
on the correct area call corresponding function.
How to make the phone not sleep?
https://developer.android.com/training/scheduling/wakelock?hl=zh-cn