1.bindService启动服务,服务返回一个IBinder对象,客户端就可以通过Ibinder调用service中的方法;
2.所以我们要在服务内创建一个Ibinder对象;
本文讲解了使用bindService启动服务的方法,重点介绍了客户端如何通过IBinder对象调用服务中的方法,以及服务内部创建IBinder对象的过程。
转载于:https://my.oschina.net/xiaomaoguai/blog/284621

被折叠的 条评论
为什么被折叠?