# BinderDemo **Repository Path**: pray_xak/binder-demo ## Basic Information - **Project Name**: BinderDemo - **Description**: BinderDemo,顾名思义,仅供学习交流使用。 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: https://gitee.com/pray_xak - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-03-02 - **Last Updated**: 2024-01-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 使用说明:将根目录的app文件夹替换另一新建app项目(名称为BinderServer)。作为服务端。 根目录的binderclient作为client客户端。 本demo是为了演示Binder跨进程通信原理和AIDL工具使用,相关的说明讲解在https://blog.csdn.net/caizehui/article/details/104045174 两个对象能直接互相访问的前提是这两个对象都存在于相同的内存地址空间中,如果两个对象位于两个不同进程,则不能直接互相调用。Binder 是Android中的一种跨进程通信方式,即IPC(Inter-process Communication)一种。 Binder主要分为Binder服务端、Binder客户端和Binder驱动。 ![](https://github.com/qingdaofu1/binderdemo/blob/master/Binder.png)