如何从PendingIntent获取Intent

Lef*_*ris 13 android android-intent android-pendingintent

我可以Intent从一个PendingIntent

这是场景:

  1. 我创建了一个Intent(让我们称之为myIntent)
  2. 我把一些额外的信息用字符串(称之为myInfo)
  3. 我创建一个PendingIntent(myPendingIntent)使用myIntent
  4. 我使用AlarmManager和设置闹钟myPendingIntent
  5. 在稍后阶段,我会使用PendingIntent PendingIntent.getBroadcast
  6. 在这一点上我想读myInfomyIntent是在myPendingIntent

这可能吗?通过浏览谷歌,我接近结论,这是不可能的.

Com*_*are 12

这可能吗?

不.PendingIntent是一个只写的接口.你可以更换Intent,但你不能读它.