【发布时间】:2015-08-11 15:06:42
【问题描述】:
我到处读到,使用 pendingIntent 是为了允许另一个应用程序获得启动在另一个应用程序代码中实例化的 Intent 所需的权限。这些权限是什么?使用 pendingIntent 有什么帮助?
在pendingIntents上引用另一个答案:
“PendingIntent 是您提供给外部应用程序(例如 NotificationManager、AlarmManager、Home Screen AppWidgetManager 或其他 3rd 方应用程序)的令牌,它允许外部应用程序使用您的应用程序的权限来执行预定义的一段代码。"
【问题讨论】:
-
不回答我的问题,我已经检查过了。
-
您不一定需要 PendingIntent 来启动另一个 Activity。但是需要在 Manifest 中声明。
标签: android