Broadcast, local broadcast (), broadcast
There is a method in the broadcast method. This is a very old one, but you may not know about it. LocalBroadcastManager. This is not in the native api, but in the library, so I didn't know at the time ,, the supported libraries are v4 and v7, which may not be used by everyone. Therefore, this supported library is added. Learn more about it. In combination with my own projects, the application scenario of this class first caused a problem because some requirements need to be sent in appilcation. I sent it once and received it twice. However, when a third party is integrated, the server starts a new process. The result is that the appilcation is initialized twice, so it is accepted twice. The LocalBroadcastManager class transmits the content of the current process. If it is not the current process, it will not be received.