The problem of initializing handler in onReceive of Broadcast

1. If the handler is initialized in the onReceive() method of android Broadcaset, subsequent broadcasts cannot be received.
-------- Treat handler as a global variable and initialize it.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326890031&siteId=291194637