android - service和activity之间的通讯
高洛峰
高洛峰 2017-04-17 17:35:55
0
1
447

service和activity之间除了基本的binder回调、广播机制之外,还有没有其他的一些通讯方式?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
PHPzhong

In fact, there are not many cross-process communications in Android. In addition to the binder and broadcast mentioned by the blogger, there is another type of communication that is commonly used at the bottom level, which is socket communication.
In fact, if it spreads, there can also be communication based on contentprovider. Because the content provider can set up a listener, communication can be achieved through monitoring at this time. Of course, this is a side story. The best way is binder and broadcast. When using broadcast as an inter-process communication, you should pay attention to setting the corresponding permissions.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template