Quay lại Roadmap/Android Roadmap/
Đang tải...
Hướng dẫn thử thách
1 / 114

Activity LifeCycle

### Giai đoạn: Nền Tảng & Khái Niệm Cốt Lõi **Activity LifeCycle** The Activity lifecycle is a set of states and callbacks that an Activity goes through from creation to destruction. Key callbacks include onCreate, onStart, onResume, onPause, onStop, and onDestroy. Properly implementing these callbacks ensures the app handles interruptions like phone calls or screen rotations without data loss. ### Khái niệm cốt lõi: 1. **The Activity lifecycle is a set of states and callbacks that an Activity goes through from creation to destruction** 2. **Key callbacks include onCreate, onStart, onResume, onPause, onStop, and onDestroy** ### Tài liệu tham khảo chính thống: - [Activity Lifecycle](https://developer.android.com/guide/components/activities/activity-lifecycle) (official)
Nhiệm vụ của bạn
Viết giải pháp của bạn cho bài học **Activity LifeCycle** vào trình soạn thảo bên cạnh. Bấm **Chạy Thử Nghiệm** (hoặc nhấn `Ctrl+Enter`) để thực thi và ghi nhận hoàn thành kỹ năng trên Roadmap. ### Kỹ năng cần đạt: - `Activity` - `LifeCycle` - `Engineering`
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.kt
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.