Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当您将待处理意图上的标志设置为 0 时,究竟会发生什么?它只是不升旗还是默认为其他之一?
不,这是创建新 PendingIntent 的“默认”行为,无论是否已经存在。如果您想要更专业的行为,例如在底层 Intent 相同的情况下取消现有的 PendingIntent,或者更新这样的现有 PendingIntent,那么您应该使用可以在 PendingIntent 类中找到的各种标志。