安卓AIDL客户端

标签 android

我一直在阅读关于在 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/

相关文章:

android - 未显示 snackbar

android - ListView 在 android 中使应用程序崩溃

android - Remoteview showNext() 和 showPrevious() 中的 ViewFlipper 不工作

android - 尝试在空对象引用上调用虚拟方法 'int java.util.ArrayList.size()'

java - Android:在java中的ListView菜单中定位项目?

android - 如何继承AlertDialog按钮的样式

android - 如何构建自己的 Android 应用商店服务器?

android - 使用 Parcelable 时处理派生对象

android - 具有多个类元素的 native Android 移动应用程序测试自动机导航

java - 将 String.xml 中的数组字符串添加到 ArrayList