Lesson 4: Using Intent in Services and Notification

0.0(0)
Studied by 4 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/44

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 3:46 AM on 3/23/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

45 Terms

1
New cards

Intent

is a request from an app to the Android system to perform an operation.

2
New cards

Explicit Intents

A type of Intent that Specify component to start by name. It is used to start in your own app.

3
New cards

Implicit Intents

This is a type of intent. Specify component by declaring general action to perform.

4
New cards

Intent Filter

is a description of what intents an activity (or intent receiver) is capable of handling

5
New cards

<intent-filter>

It defines what activity can do and cannot do.

  • Core components (i.e. activities, services, broadcast receivers) can use intent filters to tell the system which implicit intents they can handle or are willing to receive.

  • filters unwanted intents (i.e. those that don’t name a target class)

6
New cards

MAIN

The intent-filter declares the main entry point of the app.

  • [blank] action = entry point (requires no other info in the intent)

  • LAUNCHER category = lists the entry point in the app launcher

7
New cards

LAUNCHER

The intent-filter declares the main entry point of the app.

  • MAIN action = entry point (requires no other info in the intent)

  • [blank] category = lists the entry point in the app launcher

8
New cards

Intent.ACTION_CALL tel:phone_number

Opens phone application and calls phone_number.

9
New cards

Intent.ACTION_DIAL tel:phone_number

Opens phone application and dials (but doesn’t call) phone_number.

10
New cards

Intent.ACTION_DIAL voicemail:

Opens phone application and dials (but doesn’t call) the voice mail number.

11
New cards

Intent.ACTION_VIEW geo:lat,long

Opens the maps application centered on (lat, long).

12
New cards

Intent.ACTION_VIEW geo:0,0?q=address

Opens the maps application centered on the specified address.

13
New cards

Intent.ACTION_VIEW http://url | name

Opens the browser application to the specified address (https://url).

14
New cards

Intent.ACTION_WEB_SEARCH plain_text

  • Opens the browser application and uses Google search for a given string (plain text).

  • Use outExtra(SearchManager.Query, value)

15
New cards

Android Services

  • Are the application components that run in the background.

  • They have no user

    interface as they perform long-running processes without user intervention.

16
New cards

Foreground Services

Are type of services that perform operation that are visible to the users.

17
New cards

Background Services

Are type of services that run in the background, such that the user can’t see or access them.

18
New cards

Bound Services

A type of service that runs as long as some other application component is bound to it.

19
New cards

Started Services

A type of service lifecycle that calls startService(). Once this service starts, it runs in the background even if the component created it destroys. This service can be stopped only using stopService or stopself() methods.

20
New cards

Bounded Services

A type of service lifecycle where an application components binds it using bindService() method. The bounded components can send requests to services and get results. When all clients unbind from bound service by calling unBindService() method, service ends with onUnBind and onDestroy methods.

21
New cards

onStart() (onStartCommand())

The system uses this callback method when another component like an activity makes a request for the service to be started. Once started, it will run in the background indefinitely.

22
New cards

onBind()

A Lifecycle Callback Method when some other components want to bind with the service, the system callback this method by giving the command bindService().

23
New cards

onUnbind()

A lifecycle callback method when all clients disconnect from a specific interface published on the service, the systems calls for this method.

24
New cards

onRebind()

Once the system receives the notice that clients have disconnected, it callback this method for connecting with the new clients.

25
New cards

onCreate()

A Lifecycle Callback Method where the system invokes this method when the service initially created using onStart() or onBind().

26
New cards

onDestroy()

The system invokes this method when the client/Android destroy the service.

27
New cards

IntentService

It is a Started Service class that executes long-running programs without affecting any user’s interface interaction.

28
New cards

Notification

Are the messages that are visible to the users outside the app UI.

29
New cards

Application Icons

A form of notification of the application from which notification has come are shown on the left of the Status bar

30
New cards

Notification Drawer

A form of notification where a list of all the android notifications that have come are found in the notification drawer.

31
New cards

Text Notification

A form of notification that contains message or information

32
New cards

Expandable Notification

A form of notification that look just like a normal notification, but they can be expanded for further details

33
New cards

Notification Action

A form of notification that is the one where actions can be directly performed in the notification itself.

34
New cards

Lock Screen Notification

A form of notification that can also be visible on the lock screen.

35
New cards

Wear OS

A form of notification If the user has a paired Wear OS device

36
New cards

Small icon

Part of the Notification Anatomy. This is required and set with setSmallIcon().

37
New cards

App name

Part of the Notification Anatomy. This is provided by the system.

38
New cards

TimeStamp

Part of the Notification Anatomy. This is provided by the system but you can override with setWhen() or hide it with setShowWhen(false).

39
New cards

Large icon

Part of the Notification Anatomy. This is optional and set with setLargeIcon()

40
New cards

Title

Part of the Notification Anatomy. This is optional and set with setContentTitle()

41
New cards

Text

Part of the Notification Anatomy. This is optional and set with setCiontentText()

42
New cards

Notification Channel

is an Android feature that groups an app's notifications into categories

43
New cards

Pending Intent

is a type of intent used to grant other application the right to perform the operation you have specified as if the other application was yourself.

44
New cards

NotificationCompat.Builder

A [blank] class allows easier control, as well as helps to design different design layouts for notifications.

45
New cards

WorkManager

is an Android Jetpack library used to run deferrable, guaranteed background tasks.

Explore top notes

note
Chapter 2 - The Role of Prices
Updated 1134d ago
0.0(0)
note
7.2 Transcription
Updated 1153d ago
0.0(0)
note
Unit 2
Updated 692d ago
0.0(0)
note
Untitled
Updated 1069d ago
0.0(0)
note
Unit One Booklet 4
Updated 513d ago
0.0(0)
note
UO6 and UO7
Updated 1028d ago
0.0(0)
note
Chapter 2 - The Role of Prices
Updated 1134d ago
0.0(0)
note
7.2 Transcription
Updated 1153d ago
0.0(0)
note
Unit 2
Updated 692d ago
0.0(0)
note
Untitled
Updated 1069d ago
0.0(0)
note
Unit One Booklet 4
Updated 513d ago
0.0(0)
note
UO6 and UO7
Updated 1028d ago
0.0(0)

Explore top flashcards

flashcards
periodic table 52 elements
52
Updated 919d ago
0.0(0)
flashcards
War horse ch.1-8
24
Updated 443d ago
0.0(0)
flashcards
Edexcel IGCSE History, USA
124
Updated 802d ago
0.0(0)
flashcards
theology final
100
Updated 299d ago
0.0(0)
flashcards
La Comida vocab, parte 2
33
Updated 213d ago
0.0(0)
flashcards
climate change
55
Updated 1211d ago
0.0(0)
flashcards
periodic table 52 elements
52
Updated 919d ago
0.0(0)
flashcards
War horse ch.1-8
24
Updated 443d ago
0.0(0)
flashcards
Edexcel IGCSE History, USA
124
Updated 802d ago
0.0(0)
flashcards
theology final
100
Updated 299d ago
0.0(0)
flashcards
La Comida vocab, parte 2
33
Updated 213d ago
0.0(0)
flashcards
climate change
55
Updated 1211d ago
0.0(0)