Intention was originally used as a transfer between activities of different packages.
For example, I open a video file in ES file manager, and then jump to mobo player with my intention to play it, or fast broadcast, pptv, etc.
The intention is to solve the problem of calling other programs' activities, services and broadcasts.
I wrote it myself, and I can write both codes myself. There is no need to use the intention mechanism.