एक Activity एक user interface वाली single screen को represent करती है — यह एक मौलिक Android component है। संसाधनों (resources) और state को सही ढंग से manage करने के लिए इसके lifecycle (states और callbacks का वह क्रम जब इसे create, दिखाया, छिपाया और destroy किया जाता है) को समझना बहुत ज़रूरी है।
Activity क्या है
An ACTIVITY = one screen of the app (a UI the user interacts with):
→ an app is typically several activities (a login screen, a home screen, etc.)
→ the OS manages activities and calls LIFECYCLE methods as their state changes
