2.3.3 接收广播通知(Broadcast Intent Receiver) 广播是一种同时通知多个对象的信息通知机制。Android中的广播可以来自系统, 也可以来自普通的应用程序。
基于24个网页-相关网页
例如,当连接的设备电池电量变化时,应用程序可以接收到广播通知,从而可以通知用户或者采取其它必要的措施。
For example, an application could receive broadcasts that indicate a connected device's battery level and could notify the user or take other action as needed.
这种通知广播最好留给发送方和接收方之间的Broker。
This broadcasting of the notification is better left to the broker between the sender and the receivers.
广播接收器是一个除了接收和响应广播通知以外啥也不做的组件。
A broadcast receiver is a component that does nothing but receive and react to broadcast announcements.
应用推荐