引入:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
api 'com.google.code.gson:gson:2.8.5'
api 'com.github.flappygod:Lxhttpclient:2.0'
使用:
HashMap<String, Object> hashMap = new HashMap<String, Object>();
hashMap.put("act", "index");
LXHttpsClient.getInstacne().get(url, hashMap, callback, null);
LXHttpsClient.getInstacne().post(url, hashMap, callback, null);
LXHttpsClient.getInstacne().postParam(url, hashMap, callback, null);