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)
2
Q
How can we cancel all notifications?
A
get the notification manager and call cancelAll on that?
3
Q
How can we get the NotificationManager?
A
by calling context.getSystemService(Context.NOTIFICATION_SERVICE);