Question

Is it ok to drop PendingIntents in android if they are never used. Such as in an AppWidgetProvider where a PendingIntent that was never used be overwritten by a new PendingIntent.

Or should we call cancel on all unused PendingIntents to clean up memory appropriately?

Was it helpful?

Solution

There is no need to call cancel.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top