AIDL需要一个服务程序和客户程序。如果有多个AIDL的服务程序和客户程序,那么服务程序名字不要一样,否则其他的客户程序访问时会出错(返回的类型不同或者相同名字的服务没有关闭,在后台运行)。
< service android:name = ".MyserviceCoplex" >
< intent-filter >
< action android:name ="com.example.aidlcomplexserver.IMyService" />
</ intent-filter>
</ service>
< service android:name = ".Myservice">
< intent-filter >
< action android:name ="com.example.aidl_serverce.IMyService" />
</ intent-filter>
</ service>
如上所示的名字