|
|
1
3
You can't call directly methods on your Activity's instance, you must use the same IPC mechanism you're calling Service methods trough AIDL. First, you need to declare some methods you wish to expose as callbacks. Do that in a separate .aidl file. Then add a setter for that callback to the Service's AIDL, for example:
如果你做了imycallback.aidl.记住
|
|
|
anakin59490 · 角度5-组件和服务之间的通信 7 年前 |
|
|
Timo · Docker容器无法到达本地主机端口4444。为什么? 8 年前 |
|
|
Herobrine · C++程序和未识别程序之间的双向通信 8 年前 |
|
|
user2475448 · 卡夫卡比拉比特MQ有什么优势? 8 年前 |
|
|
Bobby_th · 访问其他java类的片段 9 年前 |