


For security reasons, the base Intent that is supplied to the PendingIntent must have the component name explicitly set to ensure it is ultimately sent there and nowhere else. A PendingIntent provides a means for applications to work, even after their process exits. A PendingIntent is generally used in cases were an AlarmManager needs to be executed or for Notification (that we’ll implement later in this tutorial). In other words, PendingIntent lets us pass a future Intent to another application and allow that application to execute that Intent as if it had the same permissions as our application, whether or not our application is still around when the Intent is eventually invoked. Android PendingIntentĪndroid PendingIntent is an object that wraps up an intent object and it specifies an action to be taken place in future. In this tutorial we’re going to discuss and implement PendingIntent and build Notification in our application. Welcome to Android Notification Example using android PendingIntent.
