Android进阶AIDL - 2018年4月14日

 

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本质:

 

posted @ 2018-04-14 17:45  javakam  阅读(121)  评论(0编辑  收藏  举报