android - Pending Intent是什么概念?为什么以及何时使用待定意向?

标签 android android-pendingintent

<分区>

我的问题很简单。 Pending Intent是什么概念?我们为什么以及何时使用 Pending Intents?如果可能,还请给出代码示例

最佳答案

PendingIntent 本身只是对系统维护的 token 的引用,该 token 描述了用于检索它的原始数据。这意味着,即使它拥有的应用程序的进程被终止,PendingIntent 本身仍可从已获得它的其他进程中使用

http://developer.android.com/reference/android/app/PendingIntent.html

查看详细信息

关于android - Pending Intent是什么概念?为什么以及何时使用待定意向?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7887984/

相关文章:

Android Studio 显示对话框 "unable to create debug bridge : unable to start adb server: unable to obtain result of ' adb version'"

android - 无法解析 'R.string.gcm_send_message'

android - 看不到点击 Intent 附加组件的小部件

android - 使用 PendingIntent 和 NotificationManagerCompat 打开 Play Store

android - 发送带有未决 Intent 的数据并进入 AppWidgetProvider 中的打开 Activity

android - 小部件 setOnClickPendingIntent 未启动服务

android - GreenDao 插入、insertOrReplace、保存

java - Android 中添加到 gradle 的类文件可以编辑吗?

android - WhatsApp 如何设计使用 edittext UI 发送图像预览

android - addProximityAlert 最初有效