Notifications and Background Tasks Flashcards

1
Q

What is a Pending Intent?

A

Pending is a wrapper around an intent that is designed to be used by another application. By giving a PendingIntent to another application, you are granting it the right to perform the operation you have specified as if the other application was yourself (with the same permissions and identity)

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

How can we cancel all notifications?

A

get the notification manager and call cancelAll on that?

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

How can we get the NotificationManager?

A

by calling context.getSystemService(Context.NOTIFICATION_SERVICE);

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