Reputation: 885
Can I get the Intent
from a PendingIntent
?
Here is the scenario:
Intent
(let's call it myIntent
)myInfo
)PendingIntent
(myPendingIntent
) using myIntent
AlarmManager
and myPendingIntent
PendingIntent.getBroadcast
myInfo
from myIntent
which is in myPendingIntent
Is this possible? By looking around Google, I am coming close to the conclusion that this is not possible.
Upvotes: 19
Views: 12860
Reputation: 26281
It's possible since 4.2.2 using reflection. Take a look at this answer, there's complete solution to obtain Intent
from PendingIntent
.
Upvotes: 4
Reputation: 1007624
Is this possible?
Nope. PendingIntent
is a write-only interface. You can replace the Intent
, but you cannot read it.
Upvotes: 19