Android: Does context affect filterEquals(), used to cancel alarm?
问题 To cancel an alarm, I use alarmManager.cancel(pendingIntent); which, according to android developers Removes any alarms with a matching Intent. Any alarm, of any type, whose Intent matches this one (as defined by filterEquals(Intent)), will be canceled. If it compares 2 pendingIntents which are constructed with a different context and the intents they use have a different context as well, but the classes they refer to are the same, does filterEquals(Intent) return true? So, pendingIntent1 has