AIDL使用

2019-06-24  本文已影响0人  Lucky胡

aidl简单使用教程
https://blog.csdn.net/baidu_32015283/article/details/93203701
https://www.cnblogs.com/chase1/p/7135961.html

不过在bandservice时会报错:

Service Intent must be explicit: Intent

需要添加package
Intent bi = new Intent("com.android.vending.billing.InAppBillingService.BIND");
bi.setPackage("com.android.vending");

报错:
java.lang.SecurityException: Binder invocation to an incorrect interface
服务端和客户端aidl文件包名不同导致。
https://blog.csdn.net/tfslovexizi/article/details/50698663

进阶:
https://yq.aliyun.com/articles/617305

上一篇 下一篇

猜你喜欢

热点阅读