How does android compare pending intents

To determine if 2 PendingIntents match, the following must be equal:

  • The requestCode parameter used when the PendingIntent was created
  • The Intent ACTION
  • The Intent CATEGORIES
  • The Intent DATA
  • The Intent MIMETYPE
  • The Intent PACKAGE
  • The Intent COMPONENT

Extras are not taken into consideration.

You can read more in the PendingIntent summary documentation and Intent.filterEquals().

Leave a Comment