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
Q

The _____ method is triggered when the user taps on button

A

onClick()

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

Inside onClick(), you can ____ upon the click

A

define what should happen

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

Detects Touch Events

A

OnTouchListener

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

This listener detects touch interactions, allowing you to track presses, movements, and releases on the screen

A

OnTouchListener

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

Detects Key Press Events

A

OnKeyListener

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

This listener is often used to detect key events in an EditText, such as when a user presses the “Enter” key

A

OnKeyListener

31
Q

Detects Focus Changes

A

OnFocusChangeListener

32
Q

Used for detecting when a view, like an input field, gains or loses focus

A

OnFocusChangeListener

33
Q

is a messaging object used to request an action from another app component

A

Intent

34
Q

______ facilitates communication between different components

A

Intent

35
Q

Intents are two types:

A

Explicit
Implicit

36
Q

communicates between two activities inside the same application

A

Explicit Intents

37
Q

Communicates between two activities of different application

A

Implicit Intent

38
Q

Intents are used to:

A

Start an Activity
Start a Service (open email, web browser, and calling)
Pass data in same application or different application

39
Q

Intent is used for ______

Intent are also used in Broadcast Message via ______

A

Broadcasting message, Broadcast Receiver

40
Q

Designed for storing and transporting data between different parts of an app, often used in conjunction with Intents

A

Bundle

41
Q

The following are the major types that are passed/retrieved to/from a Bundle:

A

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
Q

is a fundamental aspect of Android app development, allowing your app to respond to user interactions.

A

Event Handling

43
Q

These are objects that listen for specific events, such as button clicks, touch gestures, or text input.

A

Event Listeners

44
Q

These methods are invoked when the corresponding event occurs. They typically contain the code that defines the app’s response to the event

A

Event Handling Methods

45
Q

Used for button clicks

A

OnClickListener:

46
Q

This method is called when the button is clicked

A

onClick(View v):

47
Q

Used for touch events like touch, press, and release

A

OnTouchListener

48
Q

This method is called for each touch event

A

onTouch(View v, MotionEvent event):

49
Q

Used to monitor text changes in a TextView

A

TextWatcher

50
Q

Called when the text changes

A

onTextChanged(CharSequence s, int start, int count, int after):

51
Q

: Called before the text changes

A

beforeTextChanged(CharSequence s, int start, int count, int after)

52
Q

: Called after the text changes

A

afterTextChanged(Editable s)

53
Q

define the visual structure of your app’s user interface.

A

Android layouts

54
Q

They are created using XML files, and you can use various layout types to organize your UI elements;

A

Android layouts

55
Q

Arranges views in a single vertical or horizontal line

A

LinearLayout

56
Q

Positions views relative to each other or to the parent layout

A

RelativeLayout

57
Q

Stacks views on top of each other

A

FrameLayout

58
Q

A flexible layout system that allows you to position and size views relative to each other, the parent layout, or guidelines

A

ConstraintLayout

59
Q

are the visual building blocks of your app’s UI.

A

Widgets

60
Q

Displays text

A

TextView:

61
Q

Triggers actions when clicked

A

Button

62
Q

Allows users to input text

A

EditText

63
Q

Displays images

A

ImageView

64
Q

Indicates progress

A

ProgressBar

65
Q

Allows user to select a value from a range

A

SeekBar

66
Q

Presents a list of items for selection

A

Spinner

67
Q

inform users about events that occur outside of their app, such as new messages, alarms or reminders.

A

Notifications

68
Q

You can create notifications using the ____ class

A

NotificationCompat

69
Q

Key Steps to create a notification:

A

Create a NotificationChannel, Create a Notification Builder, Set the notification’s content, Set the notification’s intent, Build and show the notification

70
Q

This is required for Android Oreo and higher

A

Create a NotificationChannel

71
Q

This object helps you customize the notification’s appearance and behavior

A

Create a Notification Builder

72
Q

This includes the title, text, and any additional details

A

Set the notification’s content

73
Q

This defines what happens when the user taps on the notification

A

Set the notification’s intent

74
Q

Use the NotificationManager to display the notification

A

Build and show the notification