並前往https://google-developer-training.github.io/android-developer-fundamentals-course-practicals/en/Unit%201/22_p_activity_lifecycle_&_state.html