a lightweight IPC library that can be used to replace AIDL. 一个轻量级的跨进程通信方案,可以用来替代 AIDL
https://github.com/7hens/okbinder/tree/master
flying-pigeon 是一个IPC 跨进程通信组件,底层是匿名内存+Binder , 突破1MB大小限制,无需写AIDL文件,让实现跨进程通信就像写一个接口一样简单
https://github.com/Justson/flying-pigeon
使用AIDL+匿名共享内存实现跨进程双向通信和大文件传输。
https://github.com/kongpf8848/aidldemo
https://github.com/search?q=aidl&type=repositories&s=stars&o=desc
Android:AIDL简单介绍+传递简单数据+传递复杂数据
https://blog.csdn.net/shanhe_yuchuan/article/details/135384500
Bundle bundleSend = new Bundle();
bundleSend.putString("MoveSteps", "MoveXsteps");
bundleSend.putInt("Direction", 1);
bundleSend.putInt("steps", steps);
Pigeon flyPigeon = Pigeon.newBuilder(MyTestActivity.this).setAuthority("com.hztc.iflashsee").build();
Bundle bundleSend = new Bundle();
bundleSend.putString("MoveSteps", "MoveXsteps");
bundleSend.putInt("Direction", 1);
bundleSend.putInt("steps", steps);
Bundle bundle = flyPigeon.route("/move/steps").withBundle("ThreeDMotoCommand", bundleSend).fly();
if (bundle != null) {
Log.e(TAG, "bundle:" + bundle.toString());
tvXYZInfo.setText(bundle.getString("updateString"));
} else {
Log.e(TAG, "bundle == null");
}