Reputation: 208
I am trying to see how PendingIntents are useful. Can you provide examples of apps where PendingIntents are used?
I am not looking for examples of code, but real life use cases where PendingIntents are used, with a bit of explaination.
Thanks,
Upvotes: 1
Views: 610
Reputation: 2084
In a nutshell, PendingIntent
lets you authorize a different application to execute an Intent
on your behalf, i.e. as you and with your permissions.
A typical case would be passing a PendingIntent
to the NotificationManager
. It could have an Intent
to open an activity that is private to your application.
If you're passing intents within your application you don't have to deal with PendingIntent
.
The documentation has a pretty good explanation of this.
Upvotes: 6