Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faywong/android-json-rpc
android-json-rpc client library(fork from https://code.google.com/p/android-json-rpc)
https://github.com/faywong/android-json-rpc
Last synced: 23 days ago
JSON representation
android-json-rpc client library(fork from https://code.google.com/p/android-json-rpc)
- Host: GitHub
- URL: https://github.com/faywong/android-json-rpc
- Owner: faywong
- Created: 2014-05-20T03:20:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-10T05:05:21.000Z (over 10 years ago)
- Last Synced: 2023-04-07T22:56:14.763Z (over 1 year ago)
- Language: Java
- Size: 594 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
android-json-rpc
================android-json-rpc client library(fork from https://code.google.com/p/android-json-rpc)
How to use:
===========Sample code:
// Create client specifying JSON-RPC version 2.0
JSONRPCClient client = JSONRPCClient.create(
{your_server_service_url},
JSONRPCParams.Versions.VERSION_2);
client.setConnectionTimeout(3000);
client.setSoTimeout(3000);
// enable debug to inspect the raw request & response in your logcat output
client.setDebug(true);try
{
int ret = client.callInt({remote_rpc_function}, params...);
} catch (JSONRPCException e) {
e.printStackTrace();
}