这是Adroid平台上基于JSON格式数据的RPC远程过程调用(JSONRPC)的客户端开发包。
示例代码:
JSONRPCClietcliet=JSONRPCCliet.create("https://service/uri");cliet.setCoectioTimeout(2000);cliet.setSoTimeout(2000);try{ Strigstrig=cliet.callStrig("mymethod"); doubled=cliet.callDouble("pow",x,y); iti=cliet.callIt("add",56,25);...}catch(JSONRPCExceptioe){ e.pritStackTrace();}







评论