引用
2. Static registering
The advantage and the disadvantage of static registering is once a broadcast is registered, whenever an intent is fired, it will receive it, not matter if the application is dead or it hasn't started yet.
To do it, include XML code in the Manifest file specifying the name of the broadcast receiver and the intent filter.