Pendingintent is a special kind of intent. The main difference is that the execution of the intent is immediate, and the execution of the pendingintent is not immediate. The action performed by Pendingintent is essentially the intent operation that the parameter passes in, but the purpose of using pendingintent is that the execution of the intent operation it contains needs to meet certain conditions. The main use places and examples: Notification notificatio send, short message smsmanager send and alarm alarmmanager execution etc.
In Pendingintent
Getactivity (Context, int, Intent, int) jumps to an activity component
Getbroadcast (Context, int, Intent, int) sends a broadcast component
GetService (Context, int, Intent, int) Start a service component
The difference between the getactivity (), Getbroadcast (), GetService () Methods of Android Pendingintent