SA 5,6,7 Flashcards

1
Q

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

A

Intent

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

facilitates communication between different components

A

Intent

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

two types of intent

A

*Explicit
*Implicit

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

communicates between two activities inside the same application

A

explicit intent

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

communicates between two activities of different application

A

implicit intent

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

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

A

Bundle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
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
8
Q

are more general; they dont 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
9
Q

how to start an explicit intent

A

Intent intent = new Intent(MainActivity.this, SecondActivity.class);
startActivity(intent);

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

how to start an explicit intent with a different app package

A

Intent intent = new Intent();
intent.setClassName(“com.example.otherapp”);
startActivity(intent);

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

Starting with Android ___________ , Android introduced heads-up notification

A

Android 5.0 (Lollipop)

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

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

A

heads-up notification

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

what triggers heads up notifications?

A

PRIORITY.HIGH

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

are used to detect and respond to different user interactions with the apps UI components

A

Action Listener

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

is specifically designed to respond to click events on widgets like buttons, text, views, and images

A

OnClickListener

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

The listener responds when a view is pressed and held for a long time

A

OnLongClickListener

17
Q

The listener detects touch interactions, allowing you to track presses, and movements

A

OnTouchListener

18
Q

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

A

OnKeyListener

19
Q

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

A

OnFocusChangeListener