Lecture 13: Notifications Flashcards

1
Q

One of the requirements for working with a foreground service is that it must provide some sort of ___

A

notification to te user that the service is running

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

Notifications don’t just let you know an app is running though, they provide ___

A

descriptive information, updates or even action shortcuts

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

Notifications can be ____ controlled by the user

A

independently

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

Notifications are organized into ___
Eah app may have one or more ___

A

channels

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

____ are designed to organization notifcations in ways that allow for user control over ___

A
  • Notifications
  • Specific types of notifcation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Channels can be created by ___ or ___, but they should be registered ____ on creation in both cases

A
  • services
  • activities
  • immediately
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The importance level declared for a channels defines how ___

A

intrusive a notification may be

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

More important notifications take up more ____ and may also have ___ or ___ cues as welll

A
  • more visual spae
  • audio
  • vibration
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the 3 levels of importance?

A
  • IMPORTANCE_DEFAULT
  • IMPORTANCE_HIGH
  • IMPORTANCE_LOW
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do notifications with importance level IMPORTANCE_DEFAULT look?

A

Notifications appear everywhere and have audio cues, but are visually unobtrusive

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

How do notifications with importance level IMPORTANCE_HIGH look?

A

Notifications will visually show a tab and have an audio cue and may go full screen in some instances

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

How do notifications with importance level IMPORTANCE_LOW look?

A

Notifications will appear when the phone is locked or on the home screen and in the status bar but no audio cue

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

What is the anatomy of a notification?

A
  • custom icon
  • name of the app that generated the notification
  • timestamp based on when notification was registered
  • notification title
  • notification body/content
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Once we have a channel we can build notifications for that channel. The only tie between the two is the ___ integer must ___

A
  • CHANNEL_ID
  • match between the two
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Once the builder object is set up we can call ___ to build the notification

A

build()

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

We can fetch the current NotifiationManager context and use it to ___

A

send the built notification to the system

17
Q

Each notification must also have a ___ which is a ___ for each notification

A
  • notification ID
  • unique integer
18
Q

The _____ object allows for many customizations of your notification

A

NotificationCompat.Builder

19
Q

Notifications can be cancelled in multiple wars, the simplest is when a user cancels a notifcation by tapping on it when ___ is used

A

setAutoCancel(true)

20
Q

You can use the ____ to manually cancel individual notifications by unique integer ID orr cancel all notifications made in the channel

A

NotificationManager

21
Q

Notifications are builting using a ___ and then registered with the ___ assigned to their specific channel

A
  • builder
  • notification manager