Broadcast receiver registration A total of two forms : static registration and dynamic registration .
The difference between the two and their received broadcasts :
1. Dynamic registration broadcasts are not resident broadcasts, which means that the broadcast follows the activity 's life cycle. Note : remove the broadcast receiver before the activity ends.
Static registration is permanent, that is, when the application is closed, if there is information broadcast, the program will be automatically run by the system call.
2. When the broadcast is an orderly broadcast:
1 priority-High receive first
2 broadcast receivers with priority, dynamic precedence over static
3 similar broadcast receivers with priority, static: First scan priority over post-scan, dynamic: first registered prior to registration.
3 when the broadcast is a normal broadcast:
1 ignoring priority, dynamic broadcast receivers take precedence over static broadcast receivers
2 similar broadcast receivers with priority, static: First scan priority over post-scan, dynamic: first registered prior to registration.
The difference between static and dynamic broadcasting