6 Android UI Architecture
6 Android UI Architecture
ANDROID ARCHITECTURE
The Application Context is typically used when you need to get a context that is
not tied to the lifecycle of an Activity or Service, and that can be accessed from
anywhere within the application. This is because the Application Context is a
long-lived context, and is available as long as the application is running.
APPLICATION CONTEXT IN ANDROID?
Note that it's important to be careful when using the Application Context, as it
can lead to memory leaks if not used properly. It's important to make sure that
you don't hold onto the Application Context longer than necessary, as it can
prevent the garbage collector from freeing up memory.
ANDROID INTENTS
• Implicit Intents: Implicit Intents are used to trigger an action that may be
handled by multiple components within the system. To create an Implicit
Intent, you specify the action to be performed and the data to be
operated on. The Android system will then search for a suitable
component to handle the Intent, based on the Intent's action and data.
ANDROID INTENTS