MODISM ppt in maam quiz Flashcards

1
Q

are used to target a specific app or component within an app.

A

explicit intents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A

package name, full class name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

Explicit Intents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

Explicit Intents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

implicit intents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

Implicit intents

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Starting with ______, Android introduced heads-up notifications

A

Android 5.0 (Lollipop)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Starting with Android 5.0 (Lollipop), Android introduced ____

A

heads-up notifications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

appear briefly in a floating window at the top of the screen. overlaying the current content.

A

notifications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

notifications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Key Features of Head-Up Notifications

A

Temporary Display, Direct Action, Visibility Priority

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Heads-up notifications appear for a few seconds, allowing users to interact with them directly (e.g., answer or dismiss a call)

A

Temporary Display

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

User can swipe the notification away or interact with action buttons (like “Reply” for messages or “Accept” for calls) without leaving the current screen

A

Direct Actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

These notifications are generally used when the priority is set to high, which signals urgency and lets the notifications temporarily overlay the current activity

A

Visibility Priority

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Priority: Setting _________ or ________ is crucial to trigger heads-up behavior

A

PRIORITY_HIgh, PRIORITY_MAX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Important Points of Notification

A

Priority, Channel Importance (Android 8.0 and above),

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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

A

IMPORTANCE_HIGH

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

This feature enhances the way critical information is delivered to user without disrupting their activity entirely

A

Notifications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

are used to detect and respond to different user interactions with the app’s UI components.

A

Action Listeners

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

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

A

Action Listeners

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

specifically designed to respond to clock events on widget-like buttons, text views, images, etc.

A

OnClickListener

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

When an OnClickListener is assigned to a _____, it will respond to click events, meaning it only triggers when the user taps on the ______

A

widget

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Touch events are typically handled by ______

A

OnTouchListener

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Focus events are handled by _____

A

OnFocusChangeListener

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
The _____ method is triggered when the user taps on button
onClick()
26
Inside onClick(), you can ____ upon the click
define what should happen
27
Detects Touch Events
OnTouchListener
28
This listener detects touch interactions, allowing you to track presses, movements, and releases on the screen
OnTouchListener
29
Detects Key Press Events
OnKeyListener
30
This listener is often used to detect key events in an EditText, such as when a user presses the “Enter” key
OnKeyListener
31
Detects Focus Changes
OnFocusChangeListener
32
Used for detecting when a view, like an input field, gains or loses focus
OnFocusChangeListener
33
is a messaging object used to request an action from another app component
Intent
34
______ facilitates communication between different components
Intent
35
Intents are two types:
Explicit Implicit
36
communicates between two activities inside the same application
Explicit Intents
37
Communicates between two activities of different application
Implicit Intent
38
Intents are used to:
Start an Activity Start a Service (open email, web browser, and calling) Pass data in same application or different application
39
Intent is used for ______ Intent are also used in Broadcast Message via ______
Broadcasting message, Broadcast Receiver
40
Designed for storing and transporting data between different parts of an app, often used in conjunction with Intents
Bundle
41
The following are the major types that are passed/retrieved to/from a Bundle:
putInt(String key, int value), getInt(String key, int value) putString(String key, String value), getString(String key, String value) putStringArray(String key, String[] value), getStringArray(String key, String[] value) putChar(String key, char value), getChar(String key, char value) putBoolean(String key, boolean value), getBoolean(String key, boolean value)
42
is a fundamental aspect of Android app development, allowing your app to respond to user interactions.
Event Handling
43
These are objects that listen for specific events, such as button clicks, touch gestures, or text input.
Event Listeners
44
These methods are invoked when the corresponding event occurs. They typically contain the code that defines the app’s response to the event
Event Handling Methods
45
Used for button clicks
OnClickListener:
46
This method is called when the button is clicked
onClick(View v):
47
Used for touch events like touch, press, and release
OnTouchListener
48
This method is called for each touch event
onTouch(View v, MotionEvent event):
49
Used to monitor text changes in a TextView
TextWatcher
50
Called when the text changes
onTextChanged(CharSequence s, int start, int count, int after):
51
: Called before the text changes
beforeTextChanged(CharSequence s, int start, int count, int after)
52
: Called after the text changes
afterTextChanged(Editable s)
53
define the visual structure of your app’s user interface.
Android layouts
54
They are created using XML files, and you can use various layout types to organize your UI elements;
Android layouts
55
Arranges views in a single vertical or horizontal line
LinearLayout
56
Positions views relative to each other or to the parent layout
RelativeLayout
57
Stacks views on top of each other
FrameLayout
58
A flexible layout system that allows you to position and size views relative to each other, the parent layout, or guidelines
ConstraintLayout
59
are the visual building blocks of your app’s UI.
Widgets
60
Displays text
TextView:
61
Triggers actions when clicked
Button
62
Allows users to input text
EditText
63
Displays images
ImageView
64
Indicates progress
ProgressBar
65
Allows user to select a value from a range
SeekBar
66
Presents a list of items for selection
Spinner
67
inform users about events that occur outside of their app, such as new messages, alarms or reminders.
Notifications
68
You can create notifications using the ____ class
NotificationCompat
69
Key Steps to create a notification:
Create a NotificationChannel, Create a Notification Builder, Set the notification’s content, Set the notification’s intent, Build and show the notification
70
This is required for Android Oreo and higher
Create a NotificationChannel
71
This object helps you customize the notification’s appearance and behavior
Create a Notification Builder
72
This includes the title, text, and any additional details
Set the notification’s content
73
This defines what happens when the user taps on the notification
Set the notification’s intent
74
Use the NotificationManager to display the notification
Build and show the notification