【问题标题】:Where the data of the created PendingIntent is stored?创建的 PendingIntent 的数据存放在哪里?
【发布时间】:2021-12-12 15:21:26
【问题描述】:

我发布的 PendingIntent 在应用重新安装后幸存下来,我想知道这段时间它在哪里?

【问题讨论】:

  • 请澄清您的具体问题或提供更多详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。
  • “我发布的 PendingIntent 在重新安装应用后仍然存在”——您是如何确定的?
  • 当您说“重新安装”时,您是指应用更新/升级吗?我认为PendingIntent 不会在 卸载/安装 序列中存活。

标签: android android-intent android-pendingintent


【解决方案1】:

PendingIntent 本身只是对系统维护的令牌的引用,该令牌描述了用于检索它的原始数据。这意味着,即使其拥有的应用程序的进程被杀死,PendingIntent 本身仍可用于其他已获得它的进程。如果创建应用程序稍后重新检索相同类型的 PendingIntent(相同的操作、相同的 Intent 操作、数据、类别和组件以及相同的标志),它将收到表示相同令牌的 PendingIntent (如果仍然有效)

【讨论】:

  • 这个对令牌的引用存储在哪里?
  • PendingIntent 本身只是对系统维护的令牌的引用,该令牌描述了用于检索它的原始数据。
猜你喜欢
  • 1970-01-01
  • 2020-02-11
  • 2017-02-25
  • 1970-01-01
  • 1970-01-01
  • 2016-02-28
  • 1970-01-01
  • 2021-03-29
  • 1970-01-01
相关资源
最近更新 更多