运行时异常
用eclipse开发写客户端绑定service代码时,按照下面的写法报错,
Intent service = new Intent();
service.setComponent(new ComponentName("tarena.xf.cn.ipc_server", "tarena.xf.cn.ipc_server.MyService"));
java.lang.RuntimeException: Unable to start activity ComponentInfo{tarena.xf.cn.ipc_client/tarena.xf.cn.ipc_client.MainActivity}: java.lang.SecurityException: Not allowed to bind to service Intent { cmp=tarena.xf.cn.ipc_server/.MyService }