0
我在活動A. 建立AlarmManager
與PendingIntent
然後我想能夠從不同的活動B.Android:如何在不同的活動中訪問Pending Intent?
的Android文檔調用cancel()
在同一PendingIntent
說以下內容:
「如果稍後創建的應用程序重新獲取同一種類的PendingIntent(相同的操作,相同的Intent操作,數據,類別和組件以及相同的標誌),它將收到一個代表相同標記的PendingIntent ,因此可以調用cancel()來刪除它。「
是否有可能將PendingIntent
存儲在數據庫中 並從不同的活動中檢索它?