IBinder进行向下类型转换发生ClassCastException的可能原因
参考.https://stackoverrun.com/cn/q/3910896
1、If service to bind is in different process with the caller, you should use AIDL interface.
即:如果要绑定的服务与调用者在不同的进程中,你应该使用AIDL接口。(由于我才学到IBinder的地方,不了解AIDL接口,所以无法找到具体的例子)
参考.https://stackoverrun.com/cn/q/3910896
即:如果要绑定的服务与调用者在不同的进程中,你应该使用AIDL接口。(由于我才学到IBinder的地方,不了解AIDL接口,所以无法找到具体的例子)