1.在AS中创建aidl文件后,要编译一下才会在gen下生成debug文件:
2.AIDL 不支持short类型,常用的数据类型;
3.AIDL 中显示启动 Service
Intent intent = new Intent(); intent.setComponent(new ComponentName("com.art.exploration.Chapter2.aidl", "com.art.exploration.Chapter2.aidl.ISumService")); bindService(intent, conn, BIND_AUTO_CREATE);
4.AIDL本质: