📄️ Activity & Fragment - Kiến thức cốt lõi & Câu hỏi phỏng vấn Senior
Activity và Fragment là hai thành phần giao diện nền tảng trong hệ sinh thái Android. Đối với kỹ sư cấp độ Senior / Lead, việc nắm vững không chỉ dừng lại ở các hàm lifecycle cơ bản mà phải hiểu rõ bản chất kiến trúc ngầm (under the hood), cơ chế quản lý bộ nhớ, State Restoration, Transaction Pipeline của FragmentManager, và các edge-cases thực tế khi tối ưu ứng dụng quy mô lớn.
📄️ Intents
An Intent is a messaging object used to request an action from another app component (Activity, Service, BroadcastReceiver). They facilitate communication between different parts of your app or even between different apps entirely.
📄️ Launch Mode
Task và Back Stack
📄️ Android Lifecycle
Understanding lifecycles is crucial for avoiding memory leaks, crashes, and unpredictable behavior. Both Activity and Fragment have structured lifecycles.
📄️ Service
1. Service là gì?