0
我在活动A. 建立AlarmManager
与PendingIntent
然后我想能够从不同的活动B.Android:如何在不同的活动中访问Pending Intent?
的Android文档调用cancel()
在同一PendingIntent
说以下内容:
“如果稍后创建的应用程序重新获取同一种类的PendingIntent(相同的操作,相同的Intent操作,数据,类别和组件以及相同的标志),它将收到一个代表相同标记的PendingIntent ,因此可以调用cancel()来删除它。“
是否有可能将PendingIntent
存储在数据库中 并从不同的活动中检索它?