Un Activity rappresenta un singolo schermo con un'interfaccia utente — un componente fondamentale di Android. Il suo ciclo di vita (la sequenza di stati e callback mentre viene creato, mostrato, nascosto e distrutto) è cruciale da comprendere per gestire correttamente le risorse e lo stato.
Cos'è un 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
