我一直在阅读关于在 Android 中使用 AIDL 的 IPC。我的问题很简单,当我的应用程序“A”使用 AIDL 创建和公开服务时。我的应用程序“B”如何知道公开服务的类型(AIDL 中定义的接口(interface)),客户端应用程序是否需要获取在应用程序“A”中创建的“.AIDL”文件的副本?
因此,如果我想在我的应用程序中提供服务,客户需要知道他们可以将服务绑定(bind)到的 Intent 并获得 AIDL 文件的副本?
还有Android默认应用包是否提供AIDL服务??
最佳答案
will the client application need to get a copy of the ".AIDL" file created in application "A"?
是的。
So, if I want to provide a service in my application, clients would require to know the intent they can bind the service to and get a copy of the AIDL file?
是的。
Also does Android provide any AIDL services with the default application package??
抱歉,我不知道“默认应用程序包”是什么。
关于安卓AIDL客户端,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5998580/