android okhttp的使用
OkHttpClient client = new OkHttpClient(); String url = ""; Request request = new Request.Builder() .url(url) .build(); try { Response response = client.newCall(request).execute(); return response.body().toString(); } catch (IOException e) { e.printStackTrace(); }