Android: Passing a Service a Handler

后端 未结 2 1368
栀梦
栀梦 2020-12-11 08:40

So, I\'ve read the android AIDL documentation and have a general idea of how RPC works between an Activity and a Service. However, for my application it seems overboard to i

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 08:48

    Android documentation suggests to work with a messenger as client interface in their Remote Messenger Service Sample: Remote Messenger Service Sample

    Code example can be found in the link above, no need to repost here I guess...

    Regards, Michael

提交回复
热议问题