ਇੱਕ Activity ਇੱਕ ਆਂਨੀ ਸਕਰੀਨ ਨੂੰ ਦਰਸਾਉਂਦੀ ਹੈ ਜਿਸ ਵਿੱਚ ਇੱਕ ਯੂਜ਼ਰ ਇੰਟਰਫੇਸ ਹੈ — ਇੱਕ ਬੁਨਿਆਦੀ Android ਕੰਪੋਨੈਂਟ। ਇਸਦਾ lifecycle (ਸਥਿਤੀਆਂ ਅਤੇ ਕਾਲਬੈਕਾਂ ਦਾ ਕ੍ਰਮ ਜਿਵੇਂ ਇਹ ਬਣਾਈ ਜਾਂਦੀ ਹੈ, ਦਿਖਾਈ ਜਾਂਦੀ ਹੈ, ਲੁਕੀ ਜਾਂਦੀ ਹੈ, ਅਤੇ ਖ਼ਤਮ ਕੀਤੀ ਜਾਂਦੀ ਹੈ) ਸਰੋਤਾਂ ਅਤੇ ਸਥਿਤੀ ਦਾ ਸਹੀ ਪ੍ਰਬੰਧ ਕਰਨ ਲਈ ਸਮਝਣਾ ਜ਼ਰੂਰੀ ਹੈ।
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
