PendingIntent
是您给 foreign 应用程序(例如NotificationManager
、AlarmManager
、Home Screen AppWidgetManager
或其他第三方应用程序)的 token ,该应用程序包含allows the foreign application to use your application's permissions to execute a predefined piece of code.
如果你给 foreign 应用一个意图,它将用自己的权限执行你的Intent
.但如果你给 foreign 应用程序PendingIntent
,该应用程序将使用你的应用程序的许可执行你的Intent
.