RequestParams params = new RequestParams("UTF-8");
try {
paramssetBodyEntity(new StringEntity(gsontoJson(要转成json的对象),"UTF-8"));
paramssetContentType("application/json");
} catch (UnsupportedEncodingException e) {
eprintStackTrace();
}
>package comexampleandroidupload;
import javaioFile;
import javautilHashMap;
import javautilMap;
import androidappActivity;
import androidosBundle;
import androidosEnvironment;
import androidosHandler;
import androidutilLog;
import utilsFormFile;
import utilsSocket>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)