MODISM ppt in maam quiz Flashcards
are used to target a specific app or component within an app.
explicit intents
Explicit Intents - By specifying either the____ of the target app or the ____ of the component (like an activity or service), you ensure that the intent is directed to a particular component
package name, full class name
By specifying either the package name of the target app or the full class name of the component (like an activity or service), you ensure that the intent is directed to a particular component
Explicit Intents
especially useful when you want a precise action from a known part of the app or when you’re starting a specific activity within the same app
Explicit Intents
are more general; they don’t specify a particular app or component and rely on the system to choose an appropriate app to handle the request based on the type of action and data provided
implicit intents
used when you want the system to find an appropriate app to perform a specific action, such as opening a webpage, sending an email, or sharing content.
Implicit intents
Starting with ______, Android introduced heads-up notifications
Android 5.0 (Lollipop)
Starting with Android 5.0 (Lollipop), Android introduced ____
heads-up notifications
appear briefly in a floating window at the top of the screen. overlaying the current content.
notifications
They’re especially useful for time-sensitive notifications, like incoming calls, messages, or urgent reminders, as they grab the user’s attention without requiring them to pull down the notification shade
notifications
Key Features of Head-Up Notifications
Temporary Display, Direct Action, Visibility Priority
Heads-up notifications appear for a few seconds, allowing users to interact with them directly (e.g., answer or dismiss a call)
Temporary Display
User can swipe the notification away or interact with action buttons (like “Reply” for messages or “Accept” for calls) without leaving the current screen
Direct Actions
These notifications are generally used when the priority is set to high, which signals urgency and lets the notifications temporarily overlay the current activity
Visibility Priority
Priority: Setting _________ or ________ is crucial to trigger heads-up behavior
PRIORITY_HIgh, PRIORITY_MAX
Important Points of Notification
Priority, Channel Importance (Android 8.0 and above),
Channel Importance (Android 8.0 and above): Since Android 8.0 (Oreo), notifications are managed in channels, so setting the channel importance to ________ is also necessary for heads-up notifications to work
IMPORTANCE_HIGH
This feature enhances the way critical information is delivered to user without disrupting their activity entirely
Notifications
are used to detect and respond to different user interactions with the app’s UI components.
Action Listeners
These listeners allow developers to define what happens when users perform actions like clicking a button, selecting an item from a list, or typing into a text field
Action Listeners
specifically designed to respond to clock events on widget-like buttons, text views, images, etc.
OnClickListener
When an OnClickListener is assigned to a _____, it will respond to click events, meaning it only triggers when the user taps on the ______
widget
Touch events are typically handled by ______
OnTouchListener
Focus events are handled by _____
OnFocusChangeListener
The _____ method is triggered when the user taps on button
onClick()
Inside onClick(), you can ____ upon the click
define what should happen
Detects Touch Events
OnTouchListener
This listener detects touch interactions, allowing you to track presses, movements, and releases on the screen
OnTouchListener
Detects Key Press Events
OnKeyListener