Pendingintent.getbroadcast() Never Returns Null
I am trying to find the PendingIntent of my BroadcastReceiver that was called using an AlarmManager. I am using PendingIntent.getBroadcast() using the very same arguments that it w
Solution 1:
I am trying to find the PendingIntent of my BroadcastReceiver that was called using an AlarmManager.
Um, why?
I am using PendingIntent.getBroadcast() using the very same arguments that it was called with, however it never returns null.
It's not supposed to. It will create a PendingIntent
if there is not already one for an equivalent underlying Intent
. One could argue that the method name ought to be createBroadcast()
to make that point clearer.
Post a Comment for "Pendingintent.getbroadcast() Never Returns Null"