Binder是安卓中的一个类,实现了IBinder接口,是安卓中的一种跨进程通信手段。 在安卓开发中,Binder主要应用于服务中,包括AIDL和Messenger,而Messenger的底层实现也是AIDL,所以,这里就借用AIDL来分析一下Binder的工作过程。 AIDL是一种语言。 下面上例子。 首先还是需要一个实现了Parcelable接口的类,User2类 public class User2 implements Parcelable { int Id; String name; public User2(int id,String name){ this.Id = id; th...