安卓编程技术-第7章
7.3 远程服务 7.3.2 服务创建与调用 绑定和使用跨进程服务 16. 17. public class RemoteMathCallerDemo extends Activity { 18. private IMathService mathService; 18. 20. private ServiceConnection mConnection = new ServiceConnection() { 21. @Override 22. public void onServiceConnected(ComponentName name, IBinder service) { 23. mathService = IMathService.Stub.asInterface(service); } @Override public void onServiceDisconnected(ComponentName name) { mathService = null; }
原创力文档

文档评论(0)