There are really good examples and explanations here .
Here is a brief summary:
IntentSender
IntentSender is an instance of android.content.IntentSender
IntentSender instances cannot be built directly, but they can be obtained from the android.app.PendingIntent instance with PendingIntent.getIntentSender() , because PendingIntent encapsulates IntentSender .
IntentSender Documentation
Pendingintent
A PendingIntent is a token that you specify to a foreign application (for example, AlarmManager or AppWidgetManager ), which allows a foreign application to use the permissions of your application to execute a predefined piece of code.
Basically, the foreign application that receives the PendingIntent does not know the contents of the Intent that is wrapped by PendingIntent , but the foreign application should send a request to the main application when the certai conditions are met.
PendingIntent Documentation
NightSkyLove
source share